Dynomotion

Group: DynoMotion Message: 552 From: aeunson@btinternet.com Date: 8/10/2010
Subject: Kflop / Kanalog
Hi everyone.

Totaly new to Kflop, Kanalog and servos but I have successfuly converted a mill and lathe to cnc using Mach 3 and steppers but it would seem that using kflop is totally different.

I have an xy table using Parker Hanifin servos and SV-S drives.
The drives and motors all work when I use a potentiometer on the I/P.

I have installed Kmotion and differentially connected one of the motors (removed from the table so it cant do any damage) to the DAC0 output.

The encoder has not been connected yet.

I have tried to configure Dac0 but must have it wrong as the motor only rotates slowly clockwise.
Using console command DAC0=200 or -200 maks no difference.

Can anyone tell me where I am going wrong.

Regards

Arthur
Group: DynoMotion Message: 554 From: Tom Kerekes Date: 8/10/2010
Subject: Re: Kflop / Kanalog
Hi Arthur,
 
Hmm...  Please verify with a voltmeter that the DAC0 output is +1V after a DAC0=200 command and -1V after a DAC0=-200 command.
 
Were you able to drive both ways with the Pot?
 
TK

Group: DynoMotion Message: 555 From: aeunson@btinternet.com Date: 8/10/2010
Subject: Re: Kflop / Kanalog
Hi Tom,

No Voltmeter reads 0.018v no matter what command.

Using pot motor runs both directions.

I think the problem is I may not be configuring kmotion correctly.

Is there a set by step set of instructions to configure a system?

I have AN+ of my amp connected to DAC out 0 and AN- to gnd. is this oorrect?


Regards


Arthur
--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Arthur,
>
> Hmm...  Please verify with a voltmeter that the DAC0 output is +1V after a
> DAC0=200 command and -1V after a DAC0=-200 command.
>
> Were you able to drive both ways with the Pot?
>
> TK
>
>
>
>
> ________________________________
> From: "aeunson@..." <aeunson@...>
> To: DynoMotion@yahoogroups.com
> Sent: Tue, August 10, 2010 1:31:29 PM
> Subject: [DynoMotion] Kflop / Kanalog
>
>  
> Hi everyone.
>
> Totaly new to Kflop, Kanalog and servos but I have successfuly converted a mill
> and lathe to cnc using Mach 3 and steppers but it would seem that using kflop is
> totally different.
>
>
> I have an xy table using Parker Hanifin servos and SV-S drives.
> The drives and motors all work when I use a potentiometer on the I/P.
>
> I have installed Kmotion and differentially connected one of the motors (removed
> from the table so it cant do any damage) to the DAC0 output.
>
> The encoder has not been connected yet.
>
> I have tried to configure Dac0 but must have it wrong as the motor only rotates
> slowly clockwise.
> Using console command DAC0=200 or -200 maks no difference.
>
> Can anyone tell me where I am going wrong.
>
> Regards
>
> Arthur
>
Group: DynoMotion Message: 556 From: aeunson@btinternet.com Date: 8/10/2010
Subject: Re: Kflop / Kanalog
Tom,

In configuration I have channel 0 Axis mode input set to encoder and output set to DAC Servo.
I then download channel to kmotion. Is this corrct?

Arthur

--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Arthur,
>
> Hmm...  Please verify with a voltmeter that the DAC0 output is +1V after a
> DAC0=200 command and -1V after a DAC0=-200 command.
>
> Were you able to drive both ways with the Pot?
>
> TK
>
>
>
>
> ________________________________
> From: "aeunson@..." <aeunson@...>
> To: DynoMotion@yahoogroups.com
> Sent: Tue, August 10, 2010 1:31:29 PM
> Subject: [DynoMotion] Kflop / Kanalog
>
>  
> Hi everyone.
>
> Totaly new to Kflop, Kanalog and servos but I have successfuly converted a mill
> and lathe to cnc using Mach 3 and steppers but it would seem that using kflop is
> totally different.
>
>
> I have an xy table using Parker Hanifin servos and SV-S drives.
> The drives and motors all work when I use a potentiometer on the I/P.
>
> I have installed Kmotion and differentially connected one of the motors (removed
> from the table so it cant do any damage) to the DAC0 output.
>
> The encoder has not been connected yet.
>
> I have tried to configure Dac0 but must have it wrong as the motor only rotates
> slowly clockwise.
> Using console command DAC0=200 or -200 maks no difference.
>
> Can anyone tell me where I am going wrong.
>
> Regards
>
> Arthur
>
Group: DynoMotion Message: 557 From: Tom Kerekes Date: 8/10/2010
Subject: Re: Kflop / Kanalog
Arthur,
 
Ah. That is probably the problem.  Downloading a configuration enables the axis.  To issue DAC commands from the console you should NOT have the axis enabled.  If the axis is enabled, then the axis will continuously be writing to the DAC and overwrite anything you do from the console.  Disable all the axes on the Axis Screen and try again.
 
TK

Group: DynoMotion Message: 558 From: aeunson@btinternet.com Date: 8/10/2010
Subject: Re: Kflop / Kanalog
Tom,

Thats it running in both directions. If I send aa dac0=0 the motor still rotates slowly. Is this okay?

Now to try and set up the encoder.

Arthur

--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Arthur,
>
> Ah. That is probably the problem.  Downloading a configuration enables the
> axis.  To issue DAC commands from the console you should NOT have the axis
> enabled.  If the axis is enabled, then the axis will continuously be writing to
> the DAC and overwrite anything you do from the console.  Disable all the axes on
> the Axis Screen and try again.
>
> TK
>
>
>
>
> ________________________________
> From: "aeunson@..." <aeunson@...>
> To: DynoMotion@yahoogroups.com
> Sent: Tue, August 10, 2010 2:09:08 PM
> Subject: [DynoMotion] Re: Kflop / Kanalog
>
>  
> Tom,
>
> In configuration I have channel 0 Axis mode input set to encoder and output set
> to DAC Servo.
> I then download channel to kmotion. Is this corrct?
>
> Arthur
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Arthur,
> >
> > Hmm...  Please verify with a voltmeter that the DAC0 output is +1V after a
> > DAC0=200 command and -1V after a DAC0=-200 command.
> >
> > Were you able to drive both ways with the Pot?
> >
> > TK
> >
> >
> >
> >
> > ________________________________
> > From: "aeunson@" <aeunson@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Tue, August 10, 2010 1:31:29 PM
> > Subject: [DynoMotion] Kflop / Kanalog
> >
> >  
> > Hi everyone.
> >
> > Totaly new to Kflop, Kanalog and servos but I have successfuly converted a mill
> >
> > and lathe to cnc using Mach 3 and steppers but it would seem that using kflop
> >is
> >
> > totally different.
> >
> >
> > I have an xy table using Parker Hanifin servos and SV-S drives.
> > The drives and motors all work when I use a potentiometer on the I/P.
> >
> > I have installed Kmotion and differentially connected one of the motors
> >(removed
> >
> > from the table so it cant do any damage) to the DAC0 output.
> >
> > The encoder has not been connected yet.
> >
> > I have tried to configure Dac0 but must have it wrong as the motor only rotates
> >
> > slowly clockwise.
> > Using console command DAC0=200 or -200 maks no difference.
> >
> > Can anyone tell me where I am going wrong.
> >
> > Regards
> >
> > Arthur
> >
>
Group: DynoMotion Message: 559 From: Tom Kerekes Date: 8/10/2010
Subject: Re: Kflop / Kanalog
Arthur,
 
Good.  With Dac0=0 there is a small offset probably in both Kanalog and the amplifier.  If you find the value that makes it stop you can later enter that as an OutputOffset.  But the better way to make the axis stop is to disable the axis via an enable bit.  Also when the servo eventually is working, the servo will hold position regardless of an offset.
 
TK 

Group: DynoMotion Message: 560 From: aeunson@btinternet.com Date: 8/10/2010
Subject: Re: Kflop / Kanalog
Tom,

I have connected the encoder to JP1 A0+ A0- and B0+ B0-.

Is there anything I need to do in kmotion to configure them?

Arthur

--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Arthur,
>
> Good.  With Dac0=0 there is a small offset probably in both Kanalog and the
> amplifier.  If you find the value that makes it stop you can later enter that as
> an OutputOffset.  But the better way to make the axis stop is to disable the
> axis via an enable bit.  Also when the servo eventually is working, the servo
> will hold position regardless of an offset.
>
> TK 
>
>
>
>
> ________________________________
> From: "aeunson@..." <aeunson@...>
> To: DynoMotion@yahoogroups.com
> Sent: Tue, August 10, 2010 2:49:12 PM
> Subject: [DynoMotion] Re: Kflop / Kanalog
>
>  
> Tom,
>
> Thats it running in both directions. If I send aa dac0=0 the motor still rotates
> slowly. Is this okay?
>
> Now to try and set up the encoder.
>
> Arthur
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Arthur,
> >
> > Ah. That is probably the problem.  Downloading a configuration enables the
> > axis.  To issue DAC commands from the console you should NOT have the axis
> > enabled.  If the axis is enabled, then the axis will continuously be writing
> >to
> >
> > the DAC and overwrite anything you do from the console.  Disable all the axes
> >on
> >
> > the Axis Screen and try again.
> >
> > TK
> >
> >
> >
> >
> > ________________________________
> > From: "aeunson@" <aeunson@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Tue, August 10, 2010 2:09:08 PM
> > Subject: [DynoMotion] Re: Kflop / Kanalog
> >
> >  
> > Tom,
> >
> > In configuration I have channel 0 Axis mode input set to encoder and output set
> >
> > to DAC Servo.
> > I then download channel to kmotion. Is this corrct?
> >
> > Arthur
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Arthur,
> > >
> > > Hmm...  Please verify with a voltmeter that the DAC0 output is +1V after a
> >
> > > DAC0=200 command and -1V after a DAC0=-200 command.
> > >
> > > Were you able to drive both ways with the Pot?
> > >
> > > TK
> > >
> > >
> > >
> > >
> > > ________________________________
> > > From: "aeunson@" <aeunson@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Tue, August 10, 2010 1:31:29 PM
> > > Subject: [DynoMotion] Kflop / Kanalog
> > >
> > >  
> > > Hi everyone.
> > >
> > > Totaly new to Kflop, Kanalog and servos but I have successfuly converted a
> >mill
> >
> > >
> > > and lathe to cnc using Mach 3 and steppers but it would seem that using kflop
> >
> > >is
> > >
> > > totally different.
> > >
> > >
> > > I have an xy table using Parker Hanifin servos and SV-S drives.
> > > The drives and motors all work when I use a potentiometer on the I/P.
> > >
> > > I have installed Kmotion and differentially connected one of the motors
> > >(removed
> > >
> > > from the table so it cant do any damage) to the DAC0 output.
> > >
> > > The encoder has not been connected yet.
> > >
> > > I have tried to configure Dac0 but must have it wrong as the motor only
> >rotates
> >
> > >
> > > slowly clockwise.
> > > Using console command DAC0=200 or -200 maks no difference.
> > >
> > > Can anyone tell me where I am going wrong.
> > >
> > > Regards
> > >
> > > Arthur
> > >
> >
>
Group: DynoMotion Message: 563 From: Tom Kerekes Date: 8/10/2010
Subject: Re: Kflop / Kanalog
Arthur,
 
By default Axis 0 is configured for Encoder 0 input so you shouldn't need to do anything.
 
But in general you would need to set the Axis configuration to:
 
InputMode - Encoder
InputChan0 - to the encoder input you wish
 
TK

Group: DynoMotion Message: 564 From: aeunson@btinternet.com Date: 8/10/2010
Subject: Re: Kflop / Kanalog
Tom,

Thats how I have it but not sure if it is working.

Arthur

--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Arthur,
>
> By default Axis 0 is configured for Encoder 0 input so you shouldn't need to do
> anything.
>
> But in general you would need to set the Axis configuration to:
>
> InputMode - Encoder
> InputChan0 - to the encoder input you wish
>
> TK
>
>
>
>
> ________________________________
> From: "aeunson@..." <aeunson@...>
> To: DynoMotion@yahoogroups.com
> Sent: Tue, August 10, 2010 3:26:55 PM
> Subject: [DynoMotion] Re: Kflop / Kanalog
>
>  
> Tom,
>
> I have connected the encoder to JP1 A0+ A0- and B0+ B0-.
>
> Is there anything I need to do in kmotion to configure them?
>
> Arthur
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Arthur,
> >
> > Good.  With Dac0=0 there is a small offset probably in both Kanalog and the
> > amplifier.  If you find the value that makes it stop you can later enter that
> >as
> >
> > an OutputOffset.  But the better way to make the axis stop is to disable the
> > axis via an enable bit.  Also when the servo eventually is working, the servo
>
> > will hold position regardless of an offset.
> >
> > TK 
> >
> >
> >
> >
> > ________________________________
> > From: "aeunson@" <aeunson@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Tue, August 10, 2010 2:49:12 PM
> > Subject: [DynoMotion] Re: Kflop / Kanalog
> >
> >  
> > Tom,
> >
> > Thats it running in both directions. If I send aa dac0=0 the motor still
> >rotates
> >
> > slowly. Is this okay?
> >
> > Now to try and set up the encoder.
> >
> > Arthur
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Arthur,
> > >
> > > Ah. That is probably the problem.  Downloading a configuration enables
> >the
> >
> > > axis.  To issue DAC commands from the console you should NOT have the axis
> >
> > > enabled.  If the axis is enabled, then the axis will continuously be
> >writing
> >
> > >to
> > >
> > > the DAC and overwrite anything you do from the console.  Disable all the
> >axes
> >
> > >on
> > >
> > > the Axis Screen and try again.
> > >
> > > TK
> > >
> > >
> > >
> > >
> > > ________________________________
> > > From: "aeunson@" <aeunson@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Tue, August 10, 2010 2:09:08 PM
> > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > >
> > >  
> > > Tom,
> > >
> > > In configuration I have channel 0 Axis mode input set to encoder and output
> >set
> >
> > >
> > > to DAC Servo.
> > > I then download channel to kmotion. Is this corrct?
> > >
> > > Arthur
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Hi Arthur,
> > > >
> > > > Hmm...ÃÆ'‚  Please verify with a voltmeter that the DAC0 output is +1V
> >after a
> >
> > >
> > > > DAC0=200 command and -1V after a DAC0=-200 command.
> > > >
> > > > Were you able to drive both ways with the Pot?
> > > >
> > > > TK
> > > >
> > > >
> > > >
> > > >
> > > > ________________________________
> > > > From: "aeunson@" <aeunson@>
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Tue, August 10, 2010 1:31:29 PM
> > > > Subject: [DynoMotion] Kflop / Kanalog
> > > >
> > > > ÃÆ'‚ 
> > > > Hi everyone.
> > > >
> > > > Totaly new to Kflop, Kanalog and servos but I have successfuly converted a
>
> > >mill
> > >
> > > >
> > > > and lathe to cnc using Mach 3 and steppers but it would seem that using
> >kflop
> >
> > >
> > > >is
> > > >
> > > > totally different.
> > > >
> > > >
> > > > I have an xy table using Parker Hanifin servos and SV-S drives.
> > > > The drives and motors all work when I use a potentiometer on the I/P.
> > > >
> > > > I have installed Kmotion and differentially connected one of the motors
> > > >(removed
> > > >
> > > > from the table so it cant do any damage) to the DAC0 output.
> > > >
> > > > The encoder has not been connected yet.
> > > >
> > > > I have tried to configure Dac0 but must have it wrong as the motor only
> > >rotates
> > >
> > > >
> > > > slowly clockwise.
> > > > Using console command DAC0=200 or -200 maks no difference.
> > > >
> > > > Can anyone tell me where I am going wrong.
> > > >
> > > > Regards
> > > >
> > > > Arthur
> > > >
> > >
> >
>
Group: DynoMotion Message: 565 From: Tom Kerekes Date: 8/10/2010
Subject: Re: Kflop / Kanalog
Arthur,
 
On the Axis Screen does the "Position" change as you rotate the motor/encoder?  It should count up when rotating one direction and down the other.
 
Also on the Digital I/O screen the A/B signals come in as I/O Bits 0 and 1.  They should toggle more or less randomly as you rotate the encoder.
 
The +A and -A signals from your amplifier should be complemetary.  That is when one is high (~4V) the other should be low (~0V).  Check with a voltmeter (or better yet scope) to see if the Amplifier is driving those pins.
 
TK

Group: DynoMotion Message: 566 From: aeunson@btinternet.com Date: 8/11/2010
Subject: Re: Kflop / Kanalog
Thanks Tom

Axis position counts up and down depending on direction.

What else do I need to do before I hook up the motor to the table again?

At the moment I can see that I can change direction of the motor but I dont know how I can drive the motor to a certain position and stop it.

Maybe I have taken on to much and should have stuck with steppers.

I was gong to try and connect up the limit switches to prevent any damage.

Regards

Arthur

--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Arthur,
>
> On the Axis Screen does the "Position" change as you rotate the motor/encoder? 
> It should count up when rotating one direction and down the other.
>
> Also on the Digital I/O screen the A/B signals come in as I/O Bits 0 and 1. 
> They should toggle more or less randomly as you rotate the encoder.
>
> The +A and -A signals from your amplifier should be complemetary.  That is when
> one is high (~4V) the other should be low (~0V).  Check with a voltmeter (or
> better yet scope) to see if the Amplifier is driving those pins.
>
> TK
>
>
>
>
> ________________________________
> From: "aeunson@..." <aeunson@...>
> To: DynoMotion@yahoogroups.com
> Sent: Tue, August 10, 2010 4:28:02 PM
> Subject: [DynoMotion] Re: Kflop / Kanalog
>
>  
> Tom,
>
> Thats how I have it but not sure if it is working.
>
> Arthur
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Arthur,
> >
> > By default Axis 0 is configured for Encoder 0 input so you shouldn't need to do
> >
> > anything.
> >
> > But in general you would need to set the Axis configuration to:
> >
> > InputMode - Encoder
> > InputChan0 - to the encoder input you wish
> >
> > TK
> >
> >
> >
> >
> > ________________________________
> > From: "aeunson@" <aeunson@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Tue, August 10, 2010 3:26:55 PM
> > Subject: [DynoMotion] Re: Kflop / Kanalog
> >
> >  
> > Tom,
> >
> > I have connected the encoder to JP1 A0+ A0- and B0+ B0-.
> >
> > Is there anything I need to do in kmotion to configure them?
> >
> > Arthur
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Arthur,
> > >
> > > Good.  With Dac0=0 there is a small offset probably in both Kanalog and
> >the
> >
> > > amplifier.  If you find the value that makes it stop you can later enter
> >that
> >
> > >as
> > >
> > > an OutputOffset.  But the better way to make the axis stop is to disable
> >the
> >
> > > axis via an enable bit.  Also when the servo eventually is working, the
> >servo
> >
> >
> > > will hold position regardless of an offset.
> > >
> > > TK 
> > >
> > >
> > >
> > >
> > > ________________________________
> > > From: "aeunson@" <aeunson@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Tue, August 10, 2010 2:49:12 PM
> > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > >
> > >  
> > > Tom,
> > >
> > > Thats it running in both directions. If I send aa dac0=0 the motor still
> > >rotates
> > >
> > > slowly. Is this okay?
> > >
> > > Now to try and set up the encoder.
> > >
> > > Arthur
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Arthur,
> > > >
> > > > Ah.ÃÆ'‚ That is probably the problem.ÃÆ'‚  Downloading a
> >configuration enables
> >
> > >the
> > >
> > > > axis.ÃÆ'‚  To issue DAC commands from the console you should NOT have
> >the axis
> >
> > >
> > > > enabled.ÃÆ'‚  If the axis is enabled, then the axis will continuously
> >be
> >
> > >writing
> > >
> > > >to
> > > >
> > > > the DAC and overwrite anything you do from the console.ÃÆ'‚  Disable
> >all the
> >
> > >axes
> > >
> > > >on
> > > >
> > > > the Axis Screen and try again.
> > > >
> > > > TK
> > > >
> > > >
> > > >
> > > >
> > > > ________________________________
> > > > From: "aeunson@" <aeunson@>
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Tue, August 10, 2010 2:09:08 PM
> > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > >
> > > > ÃÆ'‚ 
> > > > Tom,
> > > >
> > > > In configuration I have channel 0 Axis mode input set to encoder and output
> >
> > >set
> > >
> > > >
> > > > to DAC Servo.
> > > > I then download channel to kmotion. Is this corrct?
> > > >
> > > > Arthur
> > > >
> > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > >
> > > > > Hi Arthur,
> > > > >
> > > > > Hmm...ÃÆ'Æ'‚ÃÆ'‚  Please verify with a voltmeter that the DAC0
> >output is +1V
> >
> > >after a
> > >
> > > >
> > > > > DAC0=200 command and -1V after a DAC0=-200 command.
> > > > >
> > > > > Were you able to drive both ways with the Pot?
> > > > >
> > > > > TK
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > ________________________________
> > > > > From: "aeunson@" <aeunson@>
> > > > > To: DynoMotion@yahoogroups.com
> > > > > Sent: Tue, August 10, 2010 1:31:29 PM
> > > > > Subject: [DynoMotion] Kflop / Kanalog
> > > > >
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > Hi everyone.
> > > > >
> > > > > Totaly new to Kflop, Kanalog and servos but I have successfuly converted
> >a
> >
> >
> > > >mill
> > > >
> > > > >
> > > > > and lathe to cnc using Mach 3 and steppers but it would seem that using
> > >kflop
> > >
> > > >
> > > > >is
> > > > >
> > > > > totally different.
> > > > >
> > > > >
> > > > > I have an xy table using Parker Hanifin servos and SV-S drives.
> > > > > The drives and motors all work when I use a potentiometer on the I/P.
> > > > >
> > > > > I have installed Kmotion and differentially connected one of the motors
> > > > >(removed
> > > > >
> > > > > from the table so it cant do any damage) to the DAC0 output.
> > > > >
> > > > > The encoder has not been connected yet.
> > > > >
> > > > > I have tried to configure Dac0 but must have it wrong as the motor only
> > > >rotates
> > > >
> > > > >
> > > > > slowly clockwise.
> > > > > Using console command DAC0=200 or -200 maks no difference.
> > > > >
> > > > > Can anyone tell me where I am going wrong.
> > > > >
> > > > > Regards
> > > > >
> > > > > Arthur
> > > > >
> > > >
> > >
> >
>
Group: DynoMotion Message: 567 From: Tom Kerekes Date: 8/11/2010
Subject: Re: Kflop / Kanalog
Hi Arthur,
 
You are doing great for someone who hasn't done this before.  If you have some patience I'm sure you will be successful.
 
Keep the motor on the bench and see if you can servo.  You will need to configure axis0.
 
See this post and see how much you can do: 
 
 
A common problem when you first close a servo loop is to have positive feedback instead of negative feedback.  In that case the servo will "take off" instead of servoing at a position.  In that case reverse something (ie InputGain0=-1).
 
Wiring the limit switches are a good idea before you put the motors on the machine.  They can be configured for any input bit on the Config/Flash Screen.  Normally the 5-24V Kanalog opto inputs are the best choice.  Verify they toggle by observing the Digital I/O Screen.
 
Regards
TK

 

Group: DynoMotion Message: 568 From: aeunson@btinternet.com Date: 8/11/2010
Subject: Re: Kflop / Kanalog
Hi Tom,

I uploaded a screenshot of the result to the files section to see if you think this is correct.

Problem is the motor still rotates slowly cw with no command.

Regards

Arthur



--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Arthur,
>
> You are doing great for someone who hasn't done this before.  If you have some
> patience I'm sure you will be successful.
>
> Keep the motor on the bench and see if you can servo.  You will need to
> configure axis0.
>
> See this post and see how much you can do: 
>
> http://tech.groups.yahoo.com/group/DynoMotion/message/257
>
> A common problem when you first close a servo loop is to have positive feedback
> instead of negative feedback.  In that case the servo will "take off" instead of
> servoing at a position.  In that case reverse something (ie InputGain0=-1).
>
> Wiring the limit switches are a good idea before you put the motors on the
> machine.  They can be configured for any input bit on the Config/Flash Screen. 
> Normally the 5-24V Kanalog opto inputs are the best choice.  Verify they toggle
> by observing the Digital I/O Screen.
>
> Regards
> TK
>
>  
>
>
>
> ________________________________
> From: "aeunson@..." <aeunson@...>
> To: DynoMotion@yahoogroups.com
> Sent: Wed, August 11, 2010 12:38:07 AM
> Subject: [DynoMotion] Re: Kflop / Kanalog
>
>  
> Thanks Tom
>
> Axis position counts up and down depending on direction.
>
> What else do I need to do before I hook up the motor to the table again?
>
> At the moment I can see that I can change direction of the motor but I dont know
> how I can drive the motor to a certain position and stop it.
>
> Maybe I have taken on to much and should have stuck with steppers.
>
> I was gong to try and connect up the limit switches to prevent any damage.
>
> Regards
>
> Arthur
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Arthur,
> >
> > On the Axis Screen does the "Position" change as you rotate the
> >motor/encoder? 
> >
> > It should count up when rotating one direction and down the other.
> >
> > Also on the Digital I/O screen the A/B signals come in as I/O Bits 0 and 1. 
> > They should toggle more or less randomly as you rotate the encoder.
> >
> > The +A and -A signals from your amplifier should be complemetary.  That is
> >when
> >
> > one is high (~4V) the other should be low (~0V).  Check with a voltmeter (or
> > better yet scope) to see if the Amplifier is driving those pins.
> >
> > TK
> >
> >
> >
> >
> > ________________________________
> > From: "aeunson@" <aeunson@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Tue, August 10, 2010 4:28:02 PM
> > Subject: [DynoMotion] Re: Kflop / Kanalog
> >
> >  
> > Tom,
> >
> > Thats how I have it but not sure if it is working.
> >
> > Arthur
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Arthur,
> > >
> > > By default Axis 0 is configured for Encoder 0 input so you shouldn't need to
> >do
> >
> > >
> > > anything.
> > >
> > > But in general you would need to set the Axis configuration to:
> > >
> > > InputMode - Encoder
> > > InputChan0 - to the encoder input you wish
> > >
> > > TK
> > >
> > >
> > >
> > >
> > > ________________________________
> > > From: "aeunson@" <aeunson@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Tue, August 10, 2010 3:26:55 PM
> > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > >
> > >  
> > > Tom,
> > >
> > > I have connected the encoder to JP1 A0+ A0- and B0+ B0-.
> > >
> > > Is there anything I need to do in kmotion to configure them?
> > >
> > > Arthur
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Arthur,
> > > >
> > > > Good.ÃÆ'‚  With Dac0=0 there is a small offset probably in both Kanalog
> >and
> >
> > >the
> > >
> > > > amplifier.ÃÆ'‚  If you find the value that makes it stop you can later
> >enter
> >
> > >that
> > >
> > > >as
> > > >
> > > > an OutputOffset.ÃÆ'‚  But the better way to make the axis stop is to
> >disable
> >
> > >the
> > >
> > > > axis via an enable bit.ÃÆ'‚  Also when the servo eventually is working,
> >the
> >
> > >servo
> > >
> > >
> > > > will hold position regardless ofÃÆ'‚ an offset.
> > > >
> > > > TKÃÆ'‚ 
> > > >
> > > >
> > > >
> > > >
> > > > ________________________________
> > > > From: "aeunson@" <aeunson@>
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Tue, August 10, 2010 2:49:12 PM
> > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > >
> > > > ÃÆ'‚ 
> > > > Tom,
> > > >
> > > > Thats it running in both directions. If I send aa dac0=0 the motor still
> > > >rotates
> > > >
> > > > slowly. Is this okay?
> > > >
> > > > Now to try and set up the encoder.
> > > >
> > > > Arthur
> > > >
> > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > >
> > > > > Arthur,
> > > > >
> > > > > Ah.ÃÆ'Æ'‚ÃÆ'‚ That is probably the problem.ÃÆ'Æ'‚ÃÆ'‚ 
> >Downloading a
> >
> > >configuration enables
> > >
> > > >the
> > > >
> > > > > axis.ÃÆ'Æ'‚ÃÆ'‚  To issue DAC commands from the console you
> >should NOT have
> >
> > >the axis
> > >
> > > >
> > > > > enabled.ÃÆ'Æ'‚ÃÆ'‚  If the axis is enabled, then the axis will
> >continuously
> >
> > >be
> > >
> > > >writing
> > > >
> > > > >to
> > > > >
> > > > > the DAC and overwrite anything you do from the
> >console.ÃÆ'Æ'‚ÃÆ'‚  Disable
> >
> > >all the
> > >
> > > >axes
> > > >
> > > > >on
> > > > >
> > > > > the Axis Screen and try again.
> > > > >
> > > > > TK
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > ________________________________
> > > > > From: "aeunson@" <aeunson@>
> > > > > To: DynoMotion@yahoogroups.com
> > > > > Sent: Tue, August 10, 2010 2:09:08 PM
> > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > >
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > Tom,
> > > > >
> > > > > In configuration I have channel 0 Axis mode input set to encoder and
> >output
> >
> > >
> > > >set
> > > >
> > > > >
> > > > > to DAC Servo.
> > > > > I then download channel to kmotion. Is this corrct?
> > > > >
> > > > > Arthur
> > > > >
> > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > >
> > > > > > Hi Arthur,
> > > > > >
> > > > > > Hmm...ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Please verify with a
> >voltmeter that the DAC0
> >
> > >output is +1V
> > >
> > > >after a
> > > >
> > > > >
> > > > > > DAC0=200 command and -1V after a DAC0=-200 command.
> > > > > >
> > > > > > Were you able to drive both ways with the Pot?
> > > > > >
> > > > > > TK
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > ________________________________
> > > > > > From: "aeunson@" <aeunson@>
> > > > > > To: DynoMotion@yahoogroups.com
> > > > > > Sent: Tue, August 10, 2010 1:31:29 PM
> > > > > > Subject: [DynoMotion] Kflop / Kanalog
> > > > > >
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > Hi everyone.
> > > > > >
> > > > > > Totaly new to Kflop, Kanalog and servos but I have successfuly
> >converted
> >
> > >a
> > >
> > >
> > > > >mill
> > > > >
> > > > > >
> > > > > > and lathe to cnc using Mach 3 and steppers but it would seem that using
> >
> > > >kflop
> > > >
> > > > >
> > > > > >is
> > > > > >
> > > > > > totally different.
> > > > > >
> > > > > >
> > > > > > I have an xy table using Parker Hanifin servos and SV-S drives.
> > > > > > The drives and motors all work when I use a potentiometer on the I/P.
> > > > > >
> > > > > > I have installed Kmotion and differentially connected one of the motors
> >
> > > > > >(removed
> > > > > >
> > > > > > from the table so it cant do any damage) to the DAC0 output.
> > > > > >
> > > > > > The encoder has not been connected yet.
> > > > > >
> > > > > > I have tried to configure Dac0 but must have it wrong as the motor only
> >
> > > > >rotates
> > > > >
> > > > > >
> > > > > > slowly clockwise.
> > > > > > Using console command DAC0=200 or -200 maks no difference.
> > > > > >
> > > > > > Can anyone tell me where I am going wrong.
> > > > > >
> > > > > > Regards
> > > > > >
> > > > > > Arthur
> > > > > >
> > > > >
> > > >
> > >
> >
>
Group: DynoMotion Message: 569 From: aeunson@btinternet.com Date: 8/11/2010
Subject: Re: Kflop / Kanalog
Tom

I have just noticed I am getting an error showing in console after a move command.

"Following error Disabled Axis :0"

Arthur

--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Arthur,
>
> You are doing great for someone who hasn't done this before.  If you have some
> patience I'm sure you will be successful.
>
> Keep the motor on the bench and see if you can servo.  You will need to
> configure axis0.
>
> See this post and see how much you can do: 
>
> http://tech.groups.yahoo.com/group/DynoMotion/message/257
>
> A common problem when you first close a servo loop is to have positive feedback
> instead of negative feedback.  In that case the servo will "take off" instead of
> servoing at a position.  In that case reverse something (ie InputGain0=-1).
>
> Wiring the limit switches are a good idea before you put the motors on the
> machine.  They can be configured for any input bit on the Config/Flash Screen. 
> Normally the 5-24V Kanalog opto inputs are the best choice.  Verify they toggle
> by observing the Digital I/O Screen.
>
> Regards
> TK
>
>  
>
>
>
> ________________________________
> From: "aeunson@..." <aeunson@...>
> To: DynoMotion@yahoogroups.com
> Sent: Wed, August 11, 2010 12:38:07 AM
> Subject: [DynoMotion] Re: Kflop / Kanalog
>
>  
> Thanks Tom
>
> Axis position counts up and down depending on direction.
>
> What else do I need to do before I hook up the motor to the table again?
>
> At the moment I can see that I can change direction of the motor but I dont know
> how I can drive the motor to a certain position and stop it.
>
> Maybe I have taken on to much and should have stuck with steppers.
>
> I was gong to try and connect up the limit switches to prevent any damage.
>
> Regards
>
> Arthur
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Arthur,
> >
> > On the Axis Screen does the "Position" change as you rotate the
> >motor/encoder? 
> >
> > It should count up when rotating one direction and down the other.
> >
> > Also on the Digital I/O screen the A/B signals come in as I/O Bits 0 and 1. 
> > They should toggle more or less randomly as you rotate the encoder.
> >
> > The +A and -A signals from your amplifier should be complemetary.  That is
> >when
> >
> > one is high (~4V) the other should be low (~0V).  Check with a voltmeter (or
> > better yet scope) to see if the Amplifier is driving those pins.
> >
> > TK
> >
> >
> >
> >
> > ________________________________
> > From: "aeunson@" <aeunson@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Tue, August 10, 2010 4:28:02 PM
> > Subject: [DynoMotion] Re: Kflop / Kanalog
> >
> >  
> > Tom,
> >
> > Thats how I have it but not sure if it is working.
> >
> > Arthur
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Arthur,
> > >
> > > By default Axis 0 is configured for Encoder 0 input so you shouldn't need to
> >do
> >
> > >
> > > anything.
> > >
> > > But in general you would need to set the Axis configuration to:
> > >
> > > InputMode - Encoder
> > > InputChan0 - to the encoder input you wish
> > >
> > > TK
> > >
> > >
> > >
> > >
> > > ________________________________
> > > From: "aeunson@" <aeunson@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Tue, August 10, 2010 3:26:55 PM
> > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > >
> > >  
> > > Tom,
> > >
> > > I have connected the encoder to JP1 A0+ A0- and B0+ B0-.
> > >
> > > Is there anything I need to do in kmotion to configure them?
> > >
> > > Arthur
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Arthur,
> > > >
> > > > Good.ÃÆ'‚  With Dac0=0 there is a small offset probably in both Kanalog
> >and
> >
> > >the
> > >
> > > > amplifier.ÃÆ'‚  If you find the value that makes it stop you can later
> >enter
> >
> > >that
> > >
> > > >as
> > > >
> > > > an OutputOffset.ÃÆ'‚  But the better way to make the axis stop is to
> >disable
> >
> > >the
> > >
> > > > axis via an enable bit.ÃÆ'‚  Also when the servo eventually is working,
> >the
> >
> > >servo
> > >
> > >
> > > > will hold position regardless ofÃÆ'‚ an offset.
> > > >
> > > > TKÃÆ'‚ 
> > > >
> > > >
> > > >
> > > >
> > > > ________________________________
> > > > From: "aeunson@" <aeunson@>
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Tue, August 10, 2010 2:49:12 PM
> > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > >
> > > > ÃÆ'‚ 
> > > > Tom,
> > > >
> > > > Thats it running in both directions. If I send aa dac0=0 the motor still
> > > >rotates
> > > >
> > > > slowly. Is this okay?
> > > >
> > > > Now to try and set up the encoder.
> > > >
> > > > Arthur
> > > >
> > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > >
> > > > > Arthur,
> > > > >
> > > > > Ah.ÃÆ'Æ'‚ÃÆ'‚ That is probably the problem.ÃÆ'Æ'‚ÃÆ'‚ 
> >Downloading a
> >
> > >configuration enables
> > >
> > > >the
> > > >
> > > > > axis.ÃÆ'Æ'‚ÃÆ'‚  To issue DAC commands from the console you
> >should NOT have
> >
> > >the axis
> > >
> > > >
> > > > > enabled.ÃÆ'Æ'‚ÃÆ'‚  If the axis is enabled, then the axis will
> >continuously
> >
> > >be
> > >
> > > >writing
> > > >
> > > > >to
> > > > >
> > > > > the DAC and overwrite anything you do from the
> >console.ÃÆ'Æ'‚ÃÆ'‚  Disable
> >
> > >all the
> > >
> > > >axes
> > > >
> > > > >on
> > > > >
> > > > > the Axis Screen and try again.
> > > > >
> > > > > TK
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > ________________________________
> > > > > From: "aeunson@" <aeunson@>
> > > > > To: DynoMotion@yahoogroups.com
> > > > > Sent: Tue, August 10, 2010 2:09:08 PM
> > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > >
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > Tom,
> > > > >
> > > > > In configuration I have channel 0 Axis mode input set to encoder and
> >output
> >
> > >
> > > >set
> > > >
> > > > >
> > > > > to DAC Servo.
> > > > > I then download channel to kmotion. Is this corrct?
> > > > >
> > > > > Arthur
> > > > >
> > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > >
> > > > > > Hi Arthur,
> > > > > >
> > > > > > Hmm...ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Please verify with a
> >voltmeter that the DAC0
> >
> > >output is +1V
> > >
> > > >after a
> > > >
> > > > >
> > > > > > DAC0=200 command and -1V after a DAC0=-200 command.
> > > > > >
> > > > > > Were you able to drive both ways with the Pot?
> > > > > >
> > > > > > TK
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > ________________________________
> > > > > > From: "aeunson@" <aeunson@>
> > > > > > To: DynoMotion@yahoogroups.com
> > > > > > Sent: Tue, August 10, 2010 1:31:29 PM
> > > > > > Subject: [DynoMotion] Kflop / Kanalog
> > > > > >
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > Hi everyone.
> > > > > >
> > > > > > Totaly new to Kflop, Kanalog and servos but I have successfuly
> >converted
> >
> > >a
> > >
> > >
> > > > >mill
> > > > >
> > > > > >
> > > > > > and lathe to cnc using Mach 3 and steppers but it would seem that using
> >
> > > >kflop
> > > >
> > > > >
> > > > > >is
> > > > > >
> > > > > > totally different.
> > > > > >
> > > > > >
> > > > > > I have an xy table using Parker Hanifin servos and SV-S drives.
> > > > > > The drives and motors all work when I use a potentiometer on the I/P.
> > > > > >
> > > > > > I have installed Kmotion and differentially connected one of the motors
> >
> > > > > >(removed
> > > > > >
> > > > > > from the table so it cant do any damage) to the DAC0 output.
> > > > > >
> > > > > > The encoder has not been connected yet.
> > > > > >
> > > > > > I have tried to configure Dac0 but must have it wrong as the motor only
> >
> > > > >rotates
> > > > >
> > > > > >
> > > > > > slowly clockwise.
> > > > > > Using console command DAC0=200 or -200 maks no difference.
> > > > > >
> > > > > > Can anyone tell me where I am going wrong.
> > > > > >
> > > > > > Regards
> > > > > >
> > > > > > Arthur
> > > > > >
> > > > >
> > > >
> > >
> >
>
Group: DynoMotion Message: 570 From: Tom Kerekes Date: 8/11/2010
Subject: Re: Kflop / Kanalog
Hi Arthur,
 
The main problem is that it looks like you have positive feedback instead of negative feedback (the motor is driving the wrong way to correct any error).
 
See:
 
 
Also push the "Zero" button before the move to make the encoder numbers not so big.
 
Also increase your Max Velocity, Acceleration, and Jerk to 10000 100000 and 1000000.  To make a motion of 1000 counts at only 100 counts/sec will take 10 seconds.    That is why the blue plot is hardly changing - it is moving at a crawl.
 
Hang in there you are making progress :}
 
TK 

Group: DynoMotion Message: 571 From: aeunson@btinternet.com Date: 8/11/2010
Subject: Re: Kflop / Kanalog
Hi Tom

Ok I think that has done the trick but i notice the motor drives anticlockwise about 1/2 turn and returns.

I have attached another screenshot to the files folder.

Regards

Arthur

--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Arthur,
>
> The main problem is that it looks like you have positive feedback instead of
> negative feedback (the motor is driving the wrong way to correct any error).
>
> See:
>
> http://tech.groups.yahoo.com/group/DynoMotion/message/264
>
> Also push the "Zero" button before the move to make the encoder numbers not so
> big.
>
> Also increase your Max Velocity, Acceleration, and Jerk to 10000 100000 and
> 1000000.  To make a motion of 1000 counts at only 100 counts/sec will take 10
> seconds.    That is why the blue plot is hardly changing - it is moving at a
> crawl.
>
> Hang in there you are making progress :}
>
> TK 
>
>
>
>
> ________________________________
> From: "aeunson@..." <aeunson@...>
> To: DynoMotion@yahoogroups.com
> Sent: Wed, August 11, 2010 1:33:34 PM
> Subject: [DynoMotion] Re: Kflop / Kanalog
>
>  
> Tom
>
> I have just noticed I am getting an error showing in console after a move
> command.
>
> "Following error Disabled Axis :0"
>
> Arthur
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Arthur,
> >
> > You are doing great for someone who hasn't done this before.  If you have some
> >
> > patience I'm sure you will be successful.
> >
> > Keep the motor on the bench and see if you can servo.  You will need to
> > configure axis0.
> >
> > See this post and see how much you can do: 
> >
> > http://tech.groups.yahoo.com/group/DynoMotion/message/257
> >
> > A common problem when you first close a servo loop is to have positive feedback
> >
> > instead of negative feedback.  In that case the servo will "take off" instead
> >of
> >
> > servoing at a position.  In that case reverse something (ie InputGain0=-1).
> >
> > Wiring the limit switches are a good idea before you put the motors on the
> > machine.  They can be configured for any input bit on the Config/Flash
> >Screen. 
> >
> > Normally the 5-24V Kanalog opto inputs are the best choice.  Verify they
> >toggle
> >
> > by observing the Digital I/O Screen.
> >
> > Regards
> > TK
> >
> >  
> >
> >
> >
> > ________________________________
> > From: "aeunson@" <aeunson@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Wed, August 11, 2010 12:38:07 AM
> > Subject: [DynoMotion] Re: Kflop / Kanalog
> >
> >  
> > Thanks Tom
> >
> > Axis position counts up and down depending on direction.
> >
> > What else do I need to do before I hook up the motor to the table again?
> >
> > At the moment I can see that I can change direction of the motor but I dont
> >know
> >
> > how I can drive the motor to a certain position and stop it.
> >
> > Maybe I have taken on to much and should have stuck with steppers.
> >
> > I was gong to try and connect up the limit switches to prevent any damage.
> >
> > Regards
> >
> > Arthur
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Arthur,
> > >
> > > On the Axis Screen does the "Position" change as you rotate the
> > >motor/encoder? 
> > >
> > > It should count up when rotating one direction and down the other.
> > >
> > > Also on the Digital I/O screen the A/B signals come in as I/O Bits 0 and
> >1. 
> >
> > > They should toggle more or less randomly as you rotate the encoder.
> > >
> > > The +A and -A signals from your amplifier should be complemetary.  That is
> >
> > >when
> > >
> > > one is high (~4V) the other should be low (~0V).  Check with a voltmeter
> >(or
> >
> > > better yet scope) to see if the Amplifier is driving those pins.
> > >
> > > TK
> > >
> > >
> > >
> > >
> > > ________________________________
> > > From: "aeunson@" <aeunson@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Tue, August 10, 2010 4:28:02 PM
> > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > >
> > >  
> > > Tom,
> > >
> > > Thats how I have it but not sure if it is working.
> > >
> > > Arthur
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Arthur,
> > > >
> > > > By default Axis 0 is configured for Encoder 0 input so you shouldn't need
> >to
> >
> > >do
> > >
> > > >
> > > > anything.
> > > >
> > > > But in general you would need to set the Axis configuration to:
> > > >
> > > > InputMode - Encoder
> > > > InputChan0 - to the encoder input you wish
> > > >
> > > > TK
> > > >
> > > >
> > > >
> > > >
> > > > ________________________________
> > > > From: "aeunson@" <aeunson@>
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Tue, August 10, 2010 3:26:55 PM
> > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > >
> > > > ÃÆ'‚ 
> > > > Tom,
> > > >
> > > > I have connected the encoder to JP1 A0+ A0- and B0+ B0-.
> > > >
> > > > Is there anything I need to do in kmotion to configure them?
> > > >
> > > > Arthur
> > > >
> > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > >
> > > > > Arthur,
> > > > >
> > > > > Good.ÃÆ'Æ'‚ÃÆ'‚  With Dac0=0 there is a small offset probably in
> >both Kanalog
> >
> > >and
> > >
> > > >the
> > > >
> > > > > amplifier.ÃÆ'Æ'‚ÃÆ'‚  If you find the value that makes it stop
> >you can later
> >
> > >enter
> > >
> > > >that
> > > >
> > > > >as
> > > > >
> > > > > an OutputOffset.ÃÆ'Æ'‚ÃÆ'‚  But the better way to make the axis
> >stop is to
> >
> > >disable
> > >
> > > >the
> > > >
> > > > > axis via an enable bit.ÃÆ'Æ'‚ÃÆ'‚  Also when the servo
> >eventually is working,
> >
> > >the
> > >
> > > >servo
> > > >
> > > >
> > > > > will hold position regardless ofÃÆ'Æ'‚ÃÆ'‚ an offset.
> > > > >
> > > > > TKÃÆ'Æ'‚ÃÆ'‚ 
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > ________________________________
> > > > > From: "aeunson@" <aeunson@>
> > > > > To: DynoMotion@yahoogroups.com
> > > > > Sent: Tue, August 10, 2010 2:49:12 PM
> > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > >
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > Tom,
> > > > >
> > > > > Thats it running in both directions. If I send aa dac0=0 the motor still
>
> > > > >rotates
> > > > >
> > > > > slowly. Is this okay?
> > > > >
> > > > > Now to try and set up the encoder.
> > > > >
> > > > > Arthur
> > > > >
> > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > >
> > > > > > Arthur,
> > > > > >
> > > > > > Ah.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ That is probably the
> >problem.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> >
> > >Downloading a
> > >
> > > >configuration enables
> > > >
> > > > >the
> > > > >
> > > > > > axis.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  To issue DAC commands
> >from the console you
> >
> > >should NOT have
> > >
> > > >the axis
> > > >
> > > > >
> > > > > > enabled.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  If the axis is
> >enabled, then the axis will
> >
> > >continuously
> > >
> > > >be
> > > >
> > > > >writing
> > > > >
> > > > > >to
> > > > > >
> > > > > > the DAC and overwrite anything you do from the
> > >console.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Disable
> > >
> > > >all the
> > > >
> > > > >axes
> > > > >
> > > > > >on
> > > > > >
> > > > > > the Axis Screen and try again.
> > > > > >
> > > > > > TK
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > ________________________________
> > > > > > From: "aeunson@" <aeunson@>
> > > > > > To: DynoMotion@yahoogroups.com
> > > > > > Sent: Tue, August 10, 2010 2:09:08 PM
> > > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > > >
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > Tom,
> > > > > >
> > > > > > In configuration I have channel 0 Axis mode input set to encoder and
> > >output
> > >
> > > >
> > > > >set
> > > > >
> > > > > >
> > > > > > to DAC Servo.
> > > > > > I then download channel to kmotion. Is this corrct?
> > > > > >
> > > > > > Arthur
> > > > > >
> > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > >
> > > > > > > Hi Arthur,
> > > > > > >
> > > > > > >
> >Hmm...ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > Please verify with a
> >
> > >voltmeter that the DAC0
> > >
> > > >output is +1V
> > > >
> > > > >after a
> > > > >
> > > > > >
> > > > > > > DAC0=200 command and -1V after a DAC0=-200 command.
> > > > > > >
> > > > > > > Were you able to drive both ways with the Pot?
> > > > > > >
> > > > > > > TK
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > ________________________________
> > > > > > > From: "aeunson@" <aeunson@>
> > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > Sent: Tue, August 10, 2010 1:31:29 PM
> > > > > > > Subject: [DynoMotion] Kflop / Kanalog
> > > > > > >
> > > > > > >
> >ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> >
> > > > > > > Hi everyone.
> > > > > > >
> > > > > > > Totaly new to Kflop, Kanalog and servos but I have successfuly
> > >converted
> > >
> > > >a
> > > >
> > > >
> > > > > >mill
> > > > > >
> > > > > > >
> > > > > > > and lathe to cnc using Mach 3 and steppers but it would seem that
> >using
> >
> > >
> > > > >kflop
> > > > >
> > > > > >
> > > > > > >is
> > > > > > >
> > > > > > > totally different.
> > > > > > >
> > > > > > >
> > > > > > > I have an xy table using Parker Hanifin servos and SV-S drives.
> > > > > > > The drives and motors all work when I use a potentiometer on the
> I/P.
> > > > > > >
> > > > > > > I have installed Kmotion and differentially connected one of the
> >motors
> >
> > >
> > > > > > >(removed
> > > > > > >
> > > > > > > from the table so it cant do any damage) to the DAC0 output.
> > > > > > >
> > > > > > > The encoder has not been connected yet.
> > > > > > >
> > > > > > > I have tried to configure Dac0 but must have it wrong as the motor
> >only
> >
> > >
> > > > > >rotates
> > > > > >
> > > > > > >
> > > > > > > slowly clockwise.
> > > > > > > Using console command DAC0=200 or -200 maks no difference.
> > > > > > >
> > > > > > > Can anyone tell me where I am going wrong.
> > > > > > >
> > > > > > > Regards
> > > > > > >
> > > > > > > Arthur
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
Group: DynoMotion Message: 572 From: Tom Kerekes Date: 8/11/2010
Subject: Re: Kflop / Kanalog
Congratulations Arthur!  You now have a closed servo loop. 
 
Since moving 1000 counts results in 1/2 rev, then the resolution must be about 2000 counts/rev.
 
Of course your motion is very slow and sloppy so the next step is to optimize the servo tuning.  Please see:
 
 
Notice in your case, the output (green plot and right side scale) is clamping at only 20 DAC counts (~0.1V).  This is because of our max allowed error (200) and very low P gain of 0.1.
 
Regards
TK
 

 

Group: DynoMotion Message: 575 From: aeunson@btinternet.com Date: 8/12/2010
Subject: Re: Kflop / Kanalog
Thanks Tom,

Your support of your product is excellent and I now feel I am getting somewhere.

I increased the P gain upto 1.7 where I could just feel the motor oscillate so reduced it to 0.8.

The I gain was set to 0.0001,any higher and it seemd to create an overshoot of the output.

I also noticed to get a full revolution I had to increase the move to 4096.

Again I have uploaded the results to the files section.

Before I move everything out to the workshop and connect up the machine for real I would like to be able to understand getting Mach to work on the single axis I have here in the office. I will also connect up home and limit switches.

Regards

Arthur


--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Congratulations Arthur!  You now have a closed servo loop. 
>
> Since moving 1000 counts results in 1/2 rev, then the resolution must be about
> 2000 counts/rev.
>
> Of course your motion is very slow and sloppy so the next step is to optimize
> the servo tuning.  Please see:
>
> http://tech.groups.yahoo.com/group/DynoMotion/message/507
>
> Notice in your case, the output (green plot and right side scale) is clamping at
> only 20 DAC counts (~0.1V).  This is because of our max allowed error (200) and
> very low P gain of 0.1.
>
> Regards
> TK
>
>
>  
>
>
>
> ________________________________
> From: "aeunson@..." <aeunson@...>
> To: DynoMotion@yahoogroups.com
> Sent: Wed, August 11, 2010 2:54:28 PM
> Subject: [DynoMotion] Re: Kflop / Kanalog
>
>  
> Hi Tom
>
> Ok I think that has done the trick but i notice the motor drives anticlockwise
> about 1/2 turn and returns.
>
> I have attached another screenshot to the files folder.
>
> Regards
>
> Arthur
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Arthur,
> >
> > The main problem is that it looks like you have positive feedback instead of
> > negative feedback (the motor is driving the wrong way to correct any error).
> >
> > See:
> >
> > http://tech.groups.yahoo.com/group/DynoMotion/message/264
> >
> > Also push the "Zero" button before the move to make the encoder numbers not so
>
> > big.
> >
> > Also increase your Max Velocity, Acceleration, and Jerk to 10000 100000 and
> > 1000000.  To make a motion of 1000 counts at only 100 counts/sec will take 10
>
> > seconds.    That is why the blue plot is hardly changing - it is moving at a
> >
> > crawl.
> >
> > Hang in there you are making progress :}
> >
> > TK 
> >
> >
> >
> >
> > ________________________________
> > From: "aeunson@" <aeunson@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Wed, August 11, 2010 1:33:34 PM
> > Subject: [DynoMotion] Re: Kflop / Kanalog
> >
> >  
> > Tom
> >
> > I have just noticed I am getting an error showing in console after a move
> > command.
> >
> > "Following error Disabled Axis :0"
> >
> > Arthur
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Arthur,
> > >
> > > You are doing great for someone who hasn't done this before.  If you have
> >some
> >
> > >
> > > patience I'm sure you will be successful.
> > >
> > > Keep the motor on the bench and see if you can servo.  You will need to
> > > configure axis0.
> > >
> > > See this post and see how much you can do: 
> > >
> > > http://tech.groups.yahoo.com/group/DynoMotion/message/257
> > >
> > > A common problem when you first close a servo loop is to have positive
> >feedback
> >
> > >
> > > instead of negative feedback.  In that case the servo will "take off"
> >instead
> >
> > >of
> > >
> > > servoing at a position.  In that case reverse something (ie
> >InputGain0=-1).
> > >
> > > Wiring the limit switches are a good idea before you put the motors on the
> > > machine.  They can be configured for any input bit on the Config/Flash
> > >Screen. 
> > >
> > > Normally the 5-24V Kanalog opto inputs are the best choice.  Verify they
> > >toggle
> > >
> > > by observing the Digital I/O Screen.
> > >
> > > Regards
> > > TK
> > >
> > >  
> > >
> > >
> > >
> > > ________________________________
> > > From: "aeunson@" <aeunson@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Wed, August 11, 2010 12:38:07 AM
> > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > >
> > >  
> > > Thanks Tom
> > >
> > > Axis position counts up and down depending on direction.
> > >
> > > What else do I need to do before I hook up the motor to the table again?
> > >
> > > At the moment I can see that I can change direction of the motor but I dont
> > >know
> > >
> > > how I can drive the motor to a certain position and stop it.
> > >
> > > Maybe I have taken on to much and should have stuck with steppers.
> > >
> > > I was gong to try and connect up the limit switches to prevent any damage.
> > >
> > > Regards
> > >
> > > Arthur
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Arthur,
> > > >
> > > > On the Axis Screen does the "Position" change as you rotate the
> > > >motor/encoder?ÃÆ'‚ 
> > > >
> > > > It should count up when rotating one direction and down the other.
> > > >
> > > > Also on the Digital I/O screen the A/B signals come in as I/O Bits 0 and
> > >1.ÃÆ'‚ 
> > >
> > > > They should toggle more or less randomly as you rotate the encoder.
> > > >
> > > > The +A and -A signals from your amplifier should be complemetary.ÃÆ'‚ 
> >That is
> >
> > >
> > > >when
> > > >
> > > > one is high (~4V) the other should be low (~0V).ÃÆ'‚  Check with a
> >voltmeter
> >
> > >(or
> > >
> > > > better yet scope) to see if the Amplifier is driving those pins.
> > > >
> > > > TK
> > > >
> > > >
> > > >
> > > >
> > > > ________________________________
> > > > From: "aeunson@" <aeunson@>
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Tue, August 10, 2010 4:28:02 PM
> > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > >
> > > > ÃÆ'‚ 
> > > > Tom,
> > > >
> > > > Thats how I have it but not sure if it is working.
> > > >
> > > > Arthur
> > > >
> > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > >
> > > > > Arthur,
> > > > >
> > > > > By default Axis 0 is configured for Encoder 0 input so you shouldn't need
> >
> > >to
> > >
> > > >do
> > > >
> > > > >
> > > > > anything.
> > > > >
> > > > > But in general you would need to set the Axis configuration to:
> > > > >
> > > > > InputMode - Encoder
> > > > > InputChan0 - to the encoder input you wish
> > > > >
> > > > > TK
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > ________________________________
> > > > > From: "aeunson@" <aeunson@>
> > > > > To: DynoMotion@yahoogroups.com
> > > > > Sent: Tue, August 10, 2010 3:26:55 PM
> > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > >
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > Tom,
> > > > >
> > > > > I have connected the encoder to JP1 A0+ A0- and B0+ B0-.
> > > > >
> > > > > Is there anything I need to do in kmotion to configure them?
> > > > >
> > > > > Arthur
> > > > >
> > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > >
> > > > > > Arthur,
> > > > > >
> > > > > > Good.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  With Dac0=0 there is a
> >small offset probably in
> >
> > >both Kanalog
> > >
> > > >and
> > > >
> > > > >the
> > > > >
> > > > > > amplifier.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  If you find the
> >value that makes it stop
> >
> > >you can later
> > >
> > > >enter
> > > >
> > > > >that
> > > > >
> > > > > >as
> > > > > >
> > > > > > an OutputOffset.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  But the
> >better way to make the axis
> >
> > >stop is to
> > >
> > > >disable
> > > >
> > > > >the
> > > > >
> > > > > > axis via an enable bit.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Also
> >when the servo
> >
> > >eventually is working,
> > >
> > > >the
> > > >
> > > > >servo
> > > > >
> > > > >
> > > > > > will hold position regardless
> >ofÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ an offset.
> > > > > >
> > > > > > TKÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > ________________________________
> > > > > > From: "aeunson@" <aeunson@>
> > > > > > To: DynoMotion@yahoogroups.com
> > > > > > Sent: Tue, August 10, 2010 2:49:12 PM
> > > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > > >
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > Tom,
> > > > > >
> > > > > > Thats it running in both directions. If I send aa dac0=0 the motor
> >still
> >
> >
> > > > > >rotates
> > > > > >
> > > > > > slowly. Is this okay?
> > > > > >
> > > > > > Now to try and set up the encoder.
> > > > > >
> > > > > > Arthur
> > > > > >
> > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > >
> > > > > > > Arthur,
> > > > > > >
> > > > > > >
> >Ah.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ That
> > is probably the
> >
> >>problem.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> >
> > >
> > > >Downloading a
> > > >
> > > > >configuration enables
> > > > >
> > > > > >the
> > > > > >
> > > > > > >
> >axis.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > To issue DAC commands
> >
> > >from the console you
> > >
> > > >should NOT have
> > > >
> > > > >the axis
> > > > >
> > > > > >
> > > > > > >
> >enabled.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > If the axis is
> >
> > >enabled, then the axis will
> > >
> > > >continuously
> > > >
> > > > >be
> > > > >
> > > > > >writing
> > > > > >
> > > > > > >to
> > > > > > >
> > > > > > > the DAC and overwrite anything you do from the
> > >
> >>console.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > Disable
> >
> > > >
> > > > >all the
> > > > >
> > > > > >axes
> > > > > >
> > > > > > >on
> > > > > > >
> > > > > > > the Axis Screen and try again.
> > > > > > >
> > > > > > > TK
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > ________________________________
> > > > > > > From: "aeunson@" <aeunson@>
> > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > Sent: Tue, August 10, 2010 2:09:08 PM
> > > > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > > > >
> > > > > > >
> >ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> >
> > > > > > > Tom,
> > > > > > >
> > > > > > > In configuration I have channel 0 Axis mode input set to encoder and
>
> > > >output
> > > >
> > > > >
> > > > > >set
> > > > > >
> > > > > > >
> > > > > > > to DAC Servo.
> > > > > > > I then download channel to kmotion. Is this corrct?
> > > > > > >
> > > > > > > Arthur
> > > > > > >
> > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > >
> > > > > > > > Hi Arthur,
> > > > > > > >
> > > > > > > >
> >>Hmm...ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > Please verify with a
> > >
> > > >voltmeter that the DAC0
> > > >
> > > > >output is +1V
> > > > >
> > > > > >after a
> > > > > >
> > > > > > >
> > > > > > > > DAC0=200 command and -1V after a DAC0=-200 command.
> > > > > > > >
> > > > > > > > Were you able to drive both ways with the Pot?
> > > > > > > >
> > > > > > > > TK
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > ________________________________
> > > > > > > > From: "aeunson@" <aeunson@>
> > > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > > Sent: Tue, August 10, 2010 1:31:29 PM
> > > > > > > > Subject: [DynoMotion] Kflop / Kanalog
> > > > > > > >
> > > > > > > >
> >>ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > >
> > > > > > > > Hi everyone.
> > > > > > > >
> > > > > > > > Totaly new to Kflop, Kanalog and servos but I have successfuly
> > > >converted
> > > >
> > > > >a
> > > > >
> > > > >
> > > > > > >mill
> > > > > > >
> > > > > > > >
> > > > > > > > and lathe to cnc using Mach 3 and steppers but it would seem that
> > >using
> > >
> > > >
> > > > > >kflop
> > > > > >
> > > > > > >
> > > > > > > >is
> > > > > > > >
> > > > > > > > totally different.
> > > > > > > >
> > > > > > > >
> > > > > > > > I have an xy table using Parker Hanifin servos and SV-S drives.
> > > > > > > > The drives and motors all work when I use a potentiometer on the
> > I/P.
> > > > > > > >
> > > > > > > > I have installed Kmotion and differentially connected one of the
> > >motors
> > >
> > > >
> > > > > > > >(removed
> > > > > > > >
> > > > > > > > from the table so it cant do any damage) to the DAC0 output.
> > > > > > > >
> > > > > > > > The encoder has not been connected yet.
> > > > > > > >
> > > > > > > > I have tried to configure Dac0 but must have it wrong as the motor
>
> > >only
> > >
> > > >
> > > > > > >rotates
> > > > > > >
> > > > > > > >
> > > > > > > > slowly clockwise.
> > > > > > > > Using console command DAC0=200 or -200 maks no difference.
> > > > > > > >
> > > > > > > > Can anyone tell me where I am going wrong.
> > > > > > > >
> > > > > > > > Regards
> > > > > > > >
> > > > > > > > Arthur
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
Group: DynoMotion Message: 576 From: Tom Kerekes Date: 8/12/2010
Subject: Re: Kflop / Kanalog
Hi Arthur,
 
I didn't see a new file uploaded.
 
Now that you have one axis working you are ready to try driving it from Mach3.  You need to make a C program that Mach can use to configure KFlop.
 
Follow the procedure described here (you are now at step 4)
 
 
Start with some Example Initialization program such as InitStepDir3Axis.c.  Paste your configuration over the ch0 settings.  Remove all the settings for ch1 and ch2.
 
Change the DefineCoordSystem call to just define one ch0 axis in the system as X by: 
 
DefineCoordSystem(0,-1,-1,-1);
Also change the Enable statement from:
 
EnableAxisDest(0,0);
 
to
 
EnableAxisDest(0, ch0->Position);
(this will enable the axis and servo at the current encoder position, otherwise you might get a rapid motion to a destination of zero)
 
Let us know how far you get.
 
Regards
TK
 
Group: DynoMotion Message: 577 From: aeunson@btinternet.com Date: 8/12/2010
Subject: Re: Kflop / Kanalog
Sorry Tom

Forgot to add the file. its there now.

I will try driving it from mach when I get back in a couple of hours.

Art.
--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Arthur,
>
> I didn't see a new file uploaded.
>
> Now that you have one axis working you are ready to try driving it from Mach3. 
> You need to make a C program that Mach can use to configure KFlop.
>
> Follow the procedure described here (you are now at step 4)
>
> http://www.dynomotion.com/Help/Mach3Plugin/Mach3.htm
>
> Start with some Example Initialization program such as InitStepDir3Axis.c. 
> Paste your configuration over the ch0 settings.  Remove all the settings for ch1
> and ch2.
>
> Change the DefineCoordSystem call to just define one ch0 axis in the system as X
> by: 
>
>
> DefineCoordSystem(0,-1,-1,-1);
>
> Also change the Enable statement from:
>
> EnableAxisDest(0,0);
>
> to
>
> EnableAxisDest(0, ch0->Position);
>
> (this will enable the axis and servo at the current encoder position, otherwise
> you might get a rapid motion to a destination of zero)
>
> Let us know how far you get.
>
> Regards
> TK
>
>
> ________________________________
> From: "aeunson@..." <aeunson@...>
> To: DynoMotion@yahoogroups.com
> Sent: Thu, August 12, 2010 1:35:53 AM
> Subject: [DynoMotion] Re: Kflop / Kanalog
>
>  
>
> Thanks Tom,
>
> Your support of your product is excellent and I now feel I am getting somewhere.
>
> I increased the P gain upto 1.7 where I could just feel the motor oscillate so
> reduced it to 0.8.
>
> The I gain was set to 0.0001,any higher and it seemd to create an overshoot of
> the output.
>
> I also noticed to get a full revolution I had to increase the move to 4096.
>
> Again I have uploaded the results to the files section.
>
> Before I move everything out to the workshop and connect up the machine for real
> I would like to be able to understand getting Mach to work on the single axis I
> have here in the office. I will also connect up home and limit switches.
>
> Regards
>
> Arthur
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Congratulations Arthur!  You now have a closed servo loop. 
> >
> > Since moving 1000 counts results in 1/2 rev, then the resolution must be about
>
> > 2000 counts/rev.
> >
> > Of course your motion is very slow and sloppy so the next step is to optimize
> > the servo tuning.  Please see:
> >
> > http://tech.groups.yahoo.com/group/DynoMotion/message/507
> >
> > Notice in your case, the output (green plot and right side scale) is clamping
> >at
> >
> > only 20 DAC counts (~0.1V).  This is because of our max allowed error (200)
> >and
> >
> > very low P gain of 0.1.
> >
> > Regards
> > TK
> >
> >
>
Group: DynoMotion Message: 578 From: Marty Escarcega Date: 8/12/2010
Subject: Re: Kflop / Kanalog
Art, thanks for sharing your progress, Its inspiration to me! I'm an electrician by trade with basic electronic skill. My group maintains the Traffic Signal control system for the City of Mesa. I'm not worried about wiring everything up, its the bit of programming and getting it to work with Mach III. (I'm collecting the parts to convert a Clausing12"x24" lathe. Given Tom's support, I have no doubt the plug in will soon be upgraded to do single point threading so I'm just going to keep collecting parts. Getting close to having to by Kflop/Snapamp though in the next month or two!
Marty
---- "aeunson@..." <aeunson@...> wrote:
>
> Sorry Tom
>
> Forgot to add the file. its there now.
>
> I will try driving it from mach when I get back in a couple of hours.
>
> Art.
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
> >
> > Hi Arthur,
> >
> > I didn't see a new file uploaded.
> >
> > Now that you have one axis working you are ready to try driving it from Mach3. 
> > You need to make a C program that Mach can use to configure KFlop.
> >
> > Follow the procedure described here (you are now at step 4)
> >
> > http://www.dynomotion.com/Help/Mach3Plugin/Mach3.htm
> >
> > Start with some Example Initialization program such as InitStepDir3Axis.c. 
> > Paste your configuration over the ch0 settings.  Remove all the settings for ch1
> > and ch2.
> >
> > Change the DefineCoordSystem call to just define one ch0 axis in the system as X
> > by: 
> >
> >
> > DefineCoordSystem(0,-1,-1,-1);
> >
> > Also change the Enable statement from:
> >
> > EnableAxisDest(0,0);
> >
> > to
> >
> > EnableAxisDest(0, ch0->Position);
> >
> > (this will enable the axis and servo at the current encoder position, otherwise
> > you might get a rapid motion to a destination of zero)
> >
> > Let us know how far you get.
> >
> > Regards
> > TK
> >
> >
> > ________________________________
> > From: "aeunson@..." <aeunson@...>
> > To: DynoMotion@yahoogroups.com
> > Sent: Thu, August 12, 2010 1:35:53 AM
> > Subject: [DynoMotion] Re: Kflop / Kanalog
> >
> >  
> >
> > Thanks Tom,
> >
> > Your support of your product is excellent and I now feel I am getting somewhere.
> >
> > I increased the P gain upto 1.7 where I could just feel the motor oscillate so
> > reduced it to 0.8.
> >
> > The I gain was set to 0.0001,any higher and it seemd to create an overshoot of
> > the output.
> >
> > I also noticed to get a full revolution I had to increase the move to 4096.
> >
> > Again I have uploaded the results to the files section.
> >
> > Before I move everything out to the workshop and connect up the machine for real
> > I would like to be able to understand getting Mach to work on the single axis I
> > have here in the office. I will also connect up home and limit switches.
> >
> > Regards
> >
> > Arthur
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Congratulations Arthur!  You now have a closed servo loop. 
> > >
> > > Since moving 1000 counts results in 1/2 rev, then the resolution must be about
> >
> > > 2000 counts/rev.
> > >
> > > Of course your motion is very slow and sloppy so the next step is to optimize
> > > the servo tuning.  Please see:
> > >
> > > http://tech.groups.yahoo.com/group/DynoMotion/message/507
> > >
> > > Notice in your case, the output (green plot and right side scale) is clamping
> > >at
> > >
> > > only 20 DAC counts (~0.1V).  This is because of our max allowed error (200)
> > >and
> > >
> > > very low P gain of 0.1.
> > >
> > > Regards
> > > TK
> > >
> > >
> >
>
>
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>
Group: DynoMotion Message: 579 From: aeunson@btinternet.com Date: 8/12/2010
Subject: Re: Kflop / Kanalog
Hi Tom,

Nearly there but not quite.

When I Jog in mach it will continue to run in one direction untill I jog in the opposite direction where it will still keep running.

Here is the program I ended up with.

Regards

Arthur

ch0->InputMode=ENCODER_MODE;
ch0->OutputMode=DAC_SERVO_MODE;
ch0->Vel=10000;
ch0->Accel=100000;
ch0->Jerk=1000000;
ch0->P=0.8000000119209;
ch0->I=9.999999747379e-005;
ch0->D=0;
ch0->FFAccel=0;
ch0->FFVel=0;
ch0->MaxI=200;
ch0->MaxErr=200;
ch0->MaxOutput=2047;
ch0->DeadBandGain=1;
ch0->DeadBandRange=0;
ch0->InputChan0=0;
ch0->InputChan1=1;
ch0->OutputChan0=0;
ch0->OutputChan1=1;
ch0->MasterAxis=-1;
ch0->LimitSwitchOptions=0x0;
ch0->InputGain0=-1;
ch0->InputGain1=1;
ch0->InputOffset0=0;
ch0->InputOffset1=0;
ch0->OutputGain=1;
ch0->OutputOffset=0;
ch0->SlaveGain=1;
ch0->BacklashMode=BACKLASH_OFF;
ch0->BacklashAmount=0;
ch0->BacklashRate=0;
ch0->invDistPerCycle=1;
ch0->Lead=0;
ch0->MaxFollowingError=4000;
ch0->StepperAmplitude=250;

ch0->iir[0].B0=1;
ch0->iir[0].B1=0;
ch0->iir[0].B2=0;
ch0->iir[0].A1=0;
ch0->iir[0].A2=0;

ch0->iir[1].B0=1;
ch0->iir[1].B1=0;
ch0->iir[1].B2=0;
ch0->iir[1].A1=0;
ch0->iir[1].A2=0;

ch0->iir[2].B0=1;
ch0->iir[2].B1=0;
ch0->iir[2].B2=0;
ch0->iir[2].A1=0;
ch0->iir[2].A2=0;

EnableAxisDest (0,ch0->Position);

DefineCordSystem (0,-1,-1,-1);

return 0;

--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Arthur,
>
> I didn't see a new file uploaded.
>
> Now that you have one axis working you are ready to try driving it from Mach3. 
> You need to make a C program that Mach can use to configure KFlop.
>
> Follow the procedure described here (you are now at step 4)
>
> http://www.dynomotion.com/Help/Mach3Plugin/Mach3.htm
>
> Start with some Example Initialization program such as InitStepDir3Axis.c. 
> Paste your configuration over the ch0 settings.  Remove all the settings for ch1
> and ch2.
>
> Change the DefineCoordSystem call to just define one ch0 axis in the system as X
> by: 
>
>
> DefineCoordSystem(0,-1,-1,-1);
>
> Also change the Enable statement from:
>
> EnableAxisDest(0,0);
>
> to
>
> EnableAxisDest(0, ch0->Position);
>
> (this will enable the axis and servo at the current encoder position, otherwise
> you might get a rapid motion to a destination of zero)
>
> Let us know how far you get.
>
> Regards
> TK
>
>
> ________________________________
> From: "aeunson@..." <aeunson@...>
> To: DynoMotion@yahoogroups.com
> Sent: Thu, August 12, 2010 1:35:53 AM
> Subject: [DynoMotion] Re: Kflop / Kanalog
>
>  
>
> Thanks Tom,
>
> Your support of your product is excellent and I now feel I am getting somewhere.
>
> I increased the P gain upto 1.7 where I could just feel the motor oscillate so
> reduced it to 0.8.
>
> The I gain was set to 0.0001,any higher and it seemd to create an overshoot of
> the output.
>
> I also noticed to get a full revolution I had to increase the move to 4096.
>
> Again I have uploaded the results to the files section.
>
> Before I move everything out to the workshop and connect up the machine for real
> I would like to be able to understand getting Mach to work on the single axis I
> have here in the office. I will also connect up home and limit switches.
>
> Regards
>
> Arthur
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Congratulations Arthur!  You now have a closed servo loop. 
> >
> > Since moving 1000 counts results in 1/2 rev, then the resolution must be about
>
> > 2000 counts/rev.
> >
> > Of course your motion is very slow and sloppy so the next step is to optimize
> > the servo tuning.  Please see:
> >
> > http://tech.groups.yahoo.com/group/DynoMotion/message/507
> >
> > Notice in your case, the output (green plot and right side scale) is clamping
> >at
> >
> > only 20 DAC counts (~0.1V).  This is because of our max allowed error (200)
> >and
> >
> > very low P gain of 0.1.
> >
> > Regards
> > TK
> >
> >
>
Group: DynoMotion Message: 580 From: Tom Kerekes Date: 8/12/2010
Subject: Re: Kflop / Kanalog
Hi Arthur,
 
Strange.  What about a G1 or G2 move of for example 1 inch?
What is your Mach3 Motor Tuning - Resolution, Vel, Accel, Units?
 
Maybe you should send your Mach3 XML file.
 
TK
 

Group: DynoMotion Message: 581 From: aeunson@btinternet.com Date: 8/13/2010
Subject: Re: Kflop / Kanalog
Hi Tom

I have it working.
Given a G0 x200 it will drive to 200. G0 x100 it will return to 100 and G0 x0 it returns to zero.
G1 & G2 are very very slow.

But it is slow so I posted the xml file into the files section to see where I have gone wrong.

All the motors are the same but the x & y axis are different gearing so I should be able to figure them out now.

It going to be a couple of weeks before I get working on the full table but I am very pleased I can now drive a single motor with mach3 and prove it will work.

Regards

Arthur

--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Arthur,
>
> Strange.  What about a G1 or G2 move of for example 1 inch?
>
> What is your Mach3 Motor Tuning - Resolution, Vel, Accel, Units?
>
> Maybe you should send your Mach3 XML file.
>
> TK
>
>
>
>
> ________________________________
> From: "aeunson@..." <aeunson@...>
> To: DynoMotion@yahoogroups.com
> Sent: Thu, August 12, 2010 4:40:40 PM
> Subject: [DynoMotion] Re: Kflop / Kanalog
>
>  
>
> Hi Tom,
>
> Nearly there but not quite.
>
> When I Jog in mach it will continue to run in one direction untill I jog in the
> opposite direction where it will still keep running.
>
> Here is the program I ended up with.
>
> Regards
>
> Arthur
>
> ch0->InputMode=ENCODER_MODE;
> ch0->OutputMode=DAC_SERVO_MODE;
> ch0->Vel=10000;
> ch0->Accel=100000;
> ch0->Jerk=1000000;
> ch0->P=0.8000000119209;
> ch0->I=9.999999747379e-005;
> ch0->D=0;
> ch0->FFAccel=0;
> ch0->FFVel=0;
> ch0->MaxI=200;
> ch0->MaxErr=200;
> ch0->MaxOutput=2047;
> ch0->DeadBandGain=1;
> ch0->DeadBandRange=0;
> ch0->InputChan0=0;
> ch0->InputChan1=1;
> ch0->OutputChan0=0;
> ch0->OutputChan1=1;
> ch0->MasterAxis=-1;
> ch0->LimitSwitchOptions=0x0;
> ch0->InputGain0=-1;
> ch0->InputGain1=1;
> ch0->InputOffset0=0;
> ch0->InputOffset1=0;
> ch0->OutputGain=1;
> ch0->OutputOffset=0;
> ch0->SlaveGain=1;
> ch0->BacklashMode=BACKLASH_OFF;
> ch0->BacklashAmount=0;
> ch0->BacklashRate=0;
> ch0->invDistPerCycle=1;
> ch0->Lead=0;
> ch0->MaxFollowingError=4000;
> ch0->StepperAmplitude=250;
>
> ch0->iir[0].B0=1;
> ch0->iir[0].B1=0;
> ch0->iir[0].B2=0;
> ch0->iir[0].A1=0;
> ch0->iir[0].A2=0;
>
> ch0->iir[1].B0=1;
> ch0->iir[1].B1=0;
> ch0->iir[1].B2=0;
> ch0->iir[1].A1=0;
> ch0->iir[1].A2=0;
>
> ch0->iir[2].B0=1;
> ch0->iir[2].B1=0;
> ch0->iir[2].B2=0;
> ch0->iir[2].A1=0;
> ch0->iir[2].A2=0;
>
> EnableAxisDest (0,ch0->Position);
>
> DefineCordSystem (0,-1,-1,-1);
>
> return 0;
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Arthur,
> >
> > I didn't see a new file uploaded.
> >
> > Now that you have one axis working you are ready to try driving it from Mach3. 
> >
> > You need to make a C program that Mach can use to configure KFlop.
> >
> > Follow the procedure described here (you are now at step 4)
> >
> > http://www.dynomotion.com/Help/Mach3Plugin/Mach3.htm
> >
> > Start with some Example Initialization program such as InitStepDir3Axis.c. 
> > Paste your configuration over the ch0 settings.  Remove all the settings for
> >ch1
> >
> > and ch2.
> >
> > Change the DefineCoordSystem call to just define one ch0 axis in the system as
> >X
> >
> > by: 
> >
> >
> > DefineCoordSystem(0,-1,-1,-1);
> >
> > Also change the Enable statement from:
> >
> > EnableAxisDest(0,0);
> >
> > to
> >
> > EnableAxisDest(0, ch0->Position);
> >
> > (this will enable the axis and servo at the current encoder position, otherwise
> >
> > you might get a rapid motion to a destination of zero)
> >
> > Let us know how far you get.
> >
> > Regards
> > TK
> >
> >
> > ________________________________
> > From: "aeunson@" <aeunson@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Thu, August 12, 2010 1:35:53 AM
> > Subject: [DynoMotion] Re: Kflop / Kanalog
> >
> >  
> >
> > Thanks Tom,
> >
> > Your support of your product is excellent and I now feel I am getting
> >somewhere.
> >
> > I increased the P gain upto 1.7 where I could just feel the motor oscillate so
>
> > reduced it to 0.8.
> >
> > The I gain was set to 0.0001,any higher and it seemd to create an overshoot of
>
> > the output.
> >
> > I also noticed to get a full revolution I had to increase the move to 4096.
> >
> > Again I have uploaded the results to the files section.
> >
> > Before I move everything out to the workshop and connect up the machine for
> >real
> >
> > I would like to be able to understand getting Mach to work on the single axis I
> >
> > have here in the office. I will also connect up home and limit switches.
> >
> > Regards
> >
> > Arthur
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Congratulations Arthur!  You now have a closed servo loop. 
> > >
> > > Since moving 1000 counts results in 1/2 rev, then the resolution must be
> >about
> >
> >
> > > 2000 counts/rev.
> > >
> > > Of course your motion is very slow and sloppy so the next step is to optimize
> >
> > > the servo tuning.  Please see:
> > >
> > > http://tech.groups.yahoo.com/group/DynoMotion/message/507
> > >
> > > Notice in your case, the output (green plot and right side scale) is
> >clamping
> >
> > >at
> > >
> > > only 20 DAC counts (~0.1V).  This is because of our max allowed error (200)
>
> > >and
> > >
> > > very low P gain of 0.1.
> > >
> > > Regards
> > > TK
> > >
> > >
> >
>
Group: DynoMotion Message: 582 From: Tom Kerekes Date: 8/13/2010
Subject: Re: Kflop / Kanalog
Hi Arthur,
 
I don't see anything specifically wrong in the Mach3Mill.xml file.  It seems to work for me.  Apparently Mach3 has an issue where it saves the XML file into whatever the current directory is when you exit which I think can result in lost changes and confusion.  Also sometimes the units inexplicably change from inches to mm mode, so check if somehow your base units somehow got switched to mm.
 
Maybe check what feed rate you specified?
 
I see you set the resolution to 4096 which is the number of encoder counts/motor rev.  Usually mills have a lead screw with about 5 turns/inch so the correct value would probably be more like 5x4096.
 
Let us know how it goes and thanks for participating in the Group.
 
TK

Group: DynoMotion Message: 583 From: aeunson@btinternet.com Date: 8/13/2010
Subject: Re: Kflop / Kanalog
Hi Tom

I usually work in these strange things called mm. I also forgot to check what the feed was set at
I have not connected the motor to the leadscrew yet so will need to take that into account when I do.

Thanks again Tom.

Regards

Art





--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Arthur,
>
> I don't see anything specifically wrong in the Mach3Mill.xml file.  It seems to
> work for me.  Apparently Mach3 has an issue where it saves the XML file into
> whatever the current directory is when you exit which I think can result in lost
> changes and confusion.  Also sometimes the units inexplicably change from inches
> to mm mode, so check if somehow your base units somehow got switched to mm.
>
> Maybe check what feed rate you specified?
>
> I see you set the resolution to 4096 which is the number of encoder counts/motor
> rev.  Usually mills have a lead screw with about 5 turns/inch so the correct
> value would probably be more like 5x4096.
>
> Let us know how it goes and thanks for participating in the Group.
>
> TK
>
>
>
>
> ________________________________
> From: "aeunson@..." <aeunson@...>
> To: DynoMotion@yahoogroups.com
> Sent: Fri, August 13, 2010 8:26:29 AM
> Subject: [DynoMotion] Re: Kflop / Kanalog
>
>  
> Hi Tom
>
> I have it working.
> Given a G0 x200 it will drive to 200. G0 x100 it will return to 100 and G0 x0 it
> returns to zero.
> G1 & G2 are very very slow.
>
> But it is slow so I posted the xml file into the files section to see where I
> have gone wrong.
>
> All the motors are the same but the x & y axis are different gearing so I should
> be able to figure them out now.
>
> It going to be a couple of weeks before I get working on the full table but I am
> very pleased I can now drive a single motor with mach3 and prove it will work.
>
> Regards
>
> Arthur
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Arthur,
> >
> > Strange.  What about a G1 or G2 move of for example 1 inch?
> >
> > What is your Mach3 Motor Tuning - Resolution, Vel, Accel, Units?
> >
> > Maybe you should send your Mach3 XML file.
> >
> > TK
> >
> >
> >
> >
> > ________________________________
> > From: "aeunson@" <aeunson@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Thu, August 12, 2010 4:40:40 PM
> > Subject: [DynoMotion] Re: Kflop / Kanalog
> >
> >  
> >
> > Hi Tom,
> >
> > Nearly there but not quite.
> >
> > When I Jog in mach it will continue to run in one direction untill I jog in the
> >
> > opposite direction where it will still keep running.
> >
> > Here is the program I ended up with.
> >
> > Regards
> >
> > Arthur
> >
> > ch0->InputMode=ENCODER_MODE;
> > ch0->OutputMode=DAC_SERVO_MODE;
> > ch0->Vel=10000;
> > ch0->Accel=100000;
> > ch0->Jerk=1000000;
> > ch0->P=0.8000000119209;
> > ch0->I=9.999999747379e-005;
> > ch0->D=0;
> > ch0->FFAccel=0;
> > ch0->FFVel=0;
> > ch0->MaxI=200;
> > ch0->MaxErr=200;
> > ch0->MaxOutput=2047;
> > ch0->DeadBandGain=1;
> > ch0->DeadBandRange=0;
> > ch0->InputChan0=0;
> > ch0->InputChan1=1;
> > ch0->OutputChan0=0;
> > ch0->OutputChan1=1;
> > ch0->MasterAxis=-1;
> > ch0->LimitSwitchOptions=0x0;
> > ch0->InputGain0=-1;
> > ch0->InputGain1=1;
> > ch0->InputOffset0=0;
> > ch0->InputOffset1=0;
> > ch0->OutputGain=1;
> > ch0->OutputOffset=0;
> > ch0->SlaveGain=1;
> > ch0->BacklashMode=BACKLASH_OFF;
> > ch0->BacklashAmount=0;
> > ch0->BacklashRate=0;
> > ch0->invDistPerCycle=1;
> > ch0->Lead=0;
> > ch0->MaxFollowingError=4000;
> > ch0->StepperAmplitude=250;
> >
> > ch0->iir[0].B0=1;
> > ch0->iir[0].B1=0;
> > ch0->iir[0].B2=0;
> > ch0->iir[0].A1=0;
> > ch0->iir[0].A2=0;
> >
> > ch0->iir[1].B0=1;
> > ch0->iir[1].B1=0;
> > ch0->iir[1].B2=0;
> > ch0->iir[1].A1=0;
> > ch0->iir[1].A2=0;
> >
> > ch0->iir[2].B0=1;
> > ch0->iir[2].B1=0;
> > ch0->iir[2].B2=0;
> > ch0->iir[2].A1=0;
> > ch0->iir[2].A2=0;
> >
> > EnableAxisDest (0,ch0->Position);
> >
> > DefineCordSystem (0,-1,-1,-1);
> >
> > return 0;
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Arthur,
> > >
> > > I didn't see a new file uploaded.
> > >
> > > Now that you have one axis working you are ready to try driving it from
> >Mach3. 
> >
> > >
> > > You need to make a C program that Mach can use to configure KFlop.
> > >
> > > Follow the procedure described here (you are now at step 4)
> > >
> > > http://www.dynomotion.com/Help/Mach3Plugin/Mach3.htm
> > >
> > > Start with some Example Initialization program such as InitStepDir3Axis.c. 
>
> > > Paste your configuration over the ch0 settings.  Remove all the settings
> >for
> >
> > >ch1
> > >
> > > and ch2.
> > >
> > > Change the DefineCoordSystem call to just define one ch0 axis in the system
> >as
> >
> > >X
> > >
> > > by: 
> > >
> > >
> > > DefineCoordSystem(0,-1,-1,-1);
> > >
> > > Also change the Enable statement from:
> > >
> > > EnableAxisDest(0,0);
> > >
> > > to
> > >
> > > EnableAxisDest(0, ch0->Position);
> > >
> > > (this will enable the axis and servo at the current encoder position,
> >otherwise
> >
> > >
> > > you might get a rapid motion to a destination of zero)
> > >
> > > Let us know how far you get.
> > >
> > > Regards
> > > TK
> > >
> > >
> > > ________________________________
> > > From: "aeunson@" <aeunson@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Thu, August 12, 2010 1:35:53 AM
> > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > >
> > >  
> > >
> > > Thanks Tom,
> > >
> > > Your support of your product is excellent and I now feel I am getting
> > >somewhere.
> > >
> > > I increased the P gain upto 1.7 where I could just feel the motor oscillate
> >so
> >
> >
> > > reduced it to 0.8.
> > >
> > > The I gain was set to 0.0001,any higher and it seemd to create an overshoot
> >of
> >
> >
> > > the output.
> > >
> > > I also noticed to get a full revolution I had to increase the move to 4096.
> > >
> > > Again I have uploaded the results to the files section.
> > >
> > > Before I move everything out to the workshop and connect up the machine for
> > >real
> > >
> > > I would like to be able to understand getting Mach to work on the single axis
> >I
> >
> > >
> > > have here in the office. I will also connect up home and limit switches.
> > >
> > > Regards
> > >
> > > Arthur
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Congratulations Arthur!  You now have a closed servo loop. 
> > > >
> > > > Since moving 1000 counts results in 1/2 rev, then the resolution must be
> > >about
> > >
> > >
> > > > 2000 counts/rev.
> > > >
> > > > Of course your motion is very slow and sloppy so the next step is to
> >optimize
> >
> > >
> > > > the servo tuning.  Please see:
> > > >
> > > > http://tech.groups.yahoo.com/group/DynoMotion/message/507
> > > >
> > > > Notice in your case, the output (green plot and right side scale) is
> > >clamping
> > >
> > > >at
> > > >
> > > > only 20 DAC counts (~0.1V).  This is because of our max allowed error
> >(200)
> >
> >
> > > >and
> > > >
> > > > very low P gain of 0.1.
> > > >
> > > > Regards
> > > > TK
> > > >
> > > >
> > >
> >
>
Group: DynoMotion Message: 584 From: aeunson@btinternet.com Date: 8/13/2010
Subject: Re: Kflop / Kanalog
Hi Tom

This motor is attached to a ballscrew which has 2 turns to the inch.
Is this changed in kmotion and anothe c program written?

Regards

Art


--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Arthur,
>
> I don't see anything specifically wrong in the Mach3Mill.xml file.  It seems to
> work for me.  Apparently Mach3 has an issue where it saves the XML file into
> whatever the current directory is when you exit which I think can result in lost
> changes and confusion.  Also sometimes the units inexplicably change from inches
> to mm mode, so check if somehow your base units somehow got switched to mm.
>
> Maybe check what feed rate you specified?
>
> I see you set the resolution to 4096 which is the number of encoder counts/motor
> rev.  Usually mills have a lead screw with about 5 turns/inch so the correct
> value would probably be more like 5x4096.
>
> Let us know how it goes and thanks for participating in the Group.
>
> TK
>
>
>
>
> ________________________________
> From: "aeunson@..." <aeunson@...>
> To: DynoMotion@yahoogroups.com
> Sent: Fri, August 13, 2010 8:26:29 AM
> Subject: [DynoMotion] Re: Kflop / Kanalog
>
>  
> Hi Tom
>
> I have it working.
> Given a G0 x200 it will drive to 200. G0 x100 it will return to 100 and G0 x0 it
> returns to zero.
> G1 & G2 are very very slow.
>
> But it is slow so I posted the xml file into the files section to see where I
> have gone wrong.
>
> All the motors are the same but the x & y axis are different gearing so I should
> be able to figure them out now.
>
> It going to be a couple of weeks before I get working on the full table but I am
> very pleased I can now drive a single motor with mach3 and prove it will work.
>
> Regards
>
> Arthur
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Arthur,
> >
> > Strange.  What about a G1 or G2 move of for example 1 inch?
> >
> > What is your Mach3 Motor Tuning - Resolution, Vel, Accel, Units?
> >
> > Maybe you should send your Mach3 XML file.
> >
> > TK
> >
> >
> >
> >
> > ________________________________
> > From: "aeunson@" <aeunson@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Thu, August 12, 2010 4:40:40 PM
> > Subject: [DynoMotion] Re: Kflop / Kanalog
> >
> >  
> >
> > Hi Tom,
> >
> > Nearly there but not quite.
> >
> > When I Jog in mach it will continue to run in one direction untill I jog in the
> >
> > opposite direction where it will still keep running.
> >
> > Here is the program I ended up with.
> >
> > Regards
> >
> > Arthur
> >
> > ch0->InputMode=ENCODER_MODE;
> > ch0->OutputMode=DAC_SERVO_MODE;
> > ch0->Vel=10000;
> > ch0->Accel=100000;
> > ch0->Jerk=1000000;
> > ch0->P=0.8000000119209;
> > ch0->I=9.999999747379e-005;
> > ch0->D=0;
> > ch0->FFAccel=0;
> > ch0->FFVel=0;
> > ch0->MaxI=200;
> > ch0->MaxErr=200;
> > ch0->MaxOutput=2047;
> > ch0->DeadBandGain=1;
> > ch0->DeadBandRange=0;
> > ch0->InputChan0=0;
> > ch0->InputChan1=1;
> > ch0->OutputChan0=0;
> > ch0->OutputChan1=1;
> > ch0->MasterAxis=-1;
> > ch0->LimitSwitchOptions=0x0;
> > ch0->InputGain0=-1;
> > ch0->InputGain1=1;
> > ch0->InputOffset0=0;
> > ch0->InputOffset1=0;
> > ch0->OutputGain=1;
> > ch0->OutputOffset=0;
> > ch0->SlaveGain=1;
> > ch0->BacklashMode=BACKLASH_OFF;
> > ch0->BacklashAmount=0;
> > ch0->BacklashRate=0;
> > ch0->invDistPerCycle=1;
> > ch0->Lead=0;
> > ch0->MaxFollowingError=4000;
> > ch0->StepperAmplitude=250;
> >
> > ch0->iir[0].B0=1;
> > ch0->iir[0].B1=0;
> > ch0->iir[0].B2=0;
> > ch0->iir[0].A1=0;
> > ch0->iir[0].A2=0;
> >
> > ch0->iir[1].B0=1;
> > ch0->iir[1].B1=0;
> > ch0->iir[1].B2=0;
> > ch0->iir[1].A1=0;
> > ch0->iir[1].A2=0;
> >
> > ch0->iir[2].B0=1;
> > ch0->iir[2].B1=0;
> > ch0->iir[2].B2=0;
> > ch0->iir[2].A1=0;
> > ch0->iir[2].A2=0;
> >
> > EnableAxisDest (0,ch0->Position);
> >
> > DefineCordSystem (0,-1,-1,-1);
> >
> > return 0;
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Arthur,
> > >
> > > I didn't see a new file uploaded.
> > >
> > > Now that you have one axis working you are ready to try driving it from
> >Mach3. 
> >
> > >
> > > You need to make a C program that Mach can use to configure KFlop.
> > >
> > > Follow the procedure described here (you are now at step 4)
> > >
> > > http://www.dynomotion.com/Help/Mach3Plugin/Mach3.htm
> > >
> > > Start with some Example Initialization program such as InitStepDir3Axis.c. 
>
> > > Paste your configuration over the ch0 settings.  Remove all the settings
> >for
> >
> > >ch1
> > >
> > > and ch2.
> > >
> > > Change the DefineCoordSystem call to just define one ch0 axis in the system
> >as
> >
> > >X
> > >
> > > by: 
> > >
> > >
> > > DefineCoordSystem(0,-1,-1,-1);
> > >
> > > Also change the Enable statement from:
> > >
> > > EnableAxisDest(0,0);
> > >
> > > to
> > >
> > > EnableAxisDest(0, ch0->Position);
> > >
> > > (this will enable the axis and servo at the current encoder position,
> >otherwise
> >
> > >
> > > you might get a rapid motion to a destination of zero)
> > >
> > > Let us know how far you get.
> > >
> > > Regards
> > > TK
> > >
> > >
> > > ________________________________
> > > From: "aeunson@" <aeunson@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Thu, August 12, 2010 1:35:53 AM
> > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > >
> > >  
> > >
> > > Thanks Tom,
> > >
> > > Your support of your product is excellent and I now feel I am getting
> > >somewhere.
> > >
> > > I increased the P gain upto 1.7 where I could just feel the motor oscillate
> >so
> >
> >
> > > reduced it to 0.8.
> > >
> > > The I gain was set to 0.0001,any higher and it seemd to create an overshoot
> >of
> >
> >
> > > the output.
> > >
> > > I also noticed to get a full revolution I had to increase the move to 4096.
> > >
> > > Again I have uploaded the results to the files section.
> > >
> > > Before I move everything out to the workshop and connect up the machine for
> > >real
> > >
> > > I would like to be able to understand getting Mach to work on the single axis
> >I
> >
> > >
> > > have here in the office. I will also connect up home and limit switches.
> > >
> > > Regards
> > >
> > > Arthur
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Congratulations Arthur!  You now have a closed servo loop. 
> > > >
> > > > Since moving 1000 counts results in 1/2 rev, then the resolution must be
> > >about
> > >
> > >
> > > > 2000 counts/rev.
> > > >
> > > > Of course your motion is very slow and sloppy so the next step is to
> >optimize
> >
> > >
> > > > the servo tuning.  Please see:
> > > >
> > > > http://tech.groups.yahoo.com/group/DynoMotion/message/507
> > > >
> > > > Notice in your case, the output (green plot and right side scale) is
> > >clamping
> > >
> > > >at
> > > >
> > > > only 20 DAC counts (~0.1V).  This is because of our max allowed error
> >(200)
> >
> >
> > > >and
> > > >
> > > > very low P gain of 0.1.
> > > >
> > > > Regards
> > > > TK
> > > >
> > > >
> > >
> >
>
Group: DynoMotion Message: 585 From: aeunson@btinternet.com Date: 8/13/2010
Subject: Re: Kflop / Kanalog
Hi Tom,

This motor is conected to a ballscrew which is 2 turns to the inch.

Do I change this in kmotion and re-write the c prog?

Regards

Art
--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Arthur,
>
> I don't see anything specifically wrong in the Mach3Mill.xml file.  It seems to
> work for me.  Apparently Mach3 has an issue where it saves the XML file into
> whatever the current directory is when you exit which I think can result in lost
> changes and confusion.  Also sometimes the units inexplicably change from inches
> to mm mode, so check if somehow your base units somehow got switched to mm.
>
> Maybe check what feed rate you specified?
>
> I see you set the resolution to 4096 which is the number of encoder counts/motor
> rev.  Usually mills have a lead screw with about 5 turns/inch so the correct
> value would probably be more like 5x4096.
>
> Let us know how it goes and thanks for participating in the Group.
>
> TK
>
>
>
>
> ________________________________
> From: "aeunson@..." <aeunson@...>
> To: DynoMotion@yahoogroups.com
> Sent: Fri, August 13, 2010 8:26:29 AM
> Subject: [DynoMotion] Re: Kflop / Kanalog
>
>  
> Hi Tom
>
> I have it working.
> Given a G0 x200 it will drive to 200. G0 x100 it will return to 100 and G0 x0 it
> returns to zero.
> G1 & G2 are very very slow.
>
> But it is slow so I posted the xml file into the files section to see where I
> have gone wrong.
>
> All the motors are the same but the x & y axis are different gearing so I should
> be able to figure them out now.
>
> It going to be a couple of weeks before I get working on the full table but I am
> very pleased I can now drive a single motor with mach3 and prove it will work.
>
> Regards
>
> Arthur
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Arthur,
> >
> > Strange.  What about a G1 or G2 move of for example 1 inch?
> >
> > What is your Mach3 Motor Tuning - Resolution, Vel, Accel, Units?
> >
> > Maybe you should send your Mach3 XML file.
> >
> > TK
> >
> >
> >
> >
> > ________________________________
> > From: "aeunson@" <aeunson@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Thu, August 12, 2010 4:40:40 PM
> > Subject: [DynoMotion] Re: Kflop / Kanalog
> >
> >  
> >
> > Hi Tom,
> >
> > Nearly there but not quite.
> >
> > When I Jog in mach it will continue to run in one direction untill I jog in the
> >
> > opposite direction where it will still keep running.
> >
> > Here is the program I ended up with.
> >
> > Regards
> >
> > Arthur
> >
> > ch0->InputMode=ENCODER_MODE;
> > ch0->OutputMode=DAC_SERVO_MODE;
> > ch0->Vel=10000;
> > ch0->Accel=100000;
> > ch0->Jerk=1000000;
> > ch0->P=0.8000000119209;
> > ch0->I=9.999999747379e-005;
> > ch0->D=0;
> > ch0->FFAccel=0;
> > ch0->FFVel=0;
> > ch0->MaxI=200;
> > ch0->MaxErr=200;
> > ch0->MaxOutput=2047;
> > ch0->DeadBandGain=1;
> > ch0->DeadBandRange=0;
> > ch0->InputChan0=0;
> > ch0->InputChan1=1;
> > ch0->OutputChan0=0;
> > ch0->OutputChan1=1;
> > ch0->MasterAxis=-1;
> > ch0->LimitSwitchOptions=0x0;
> > ch0->InputGain0=-1;
> > ch0->InputGain1=1;
> > ch0->InputOffset0=0;
> > ch0->InputOffset1=0;
> > ch0->OutputGain=1;
> > ch0->OutputOffset=0;
> > ch0->SlaveGain=1;
> > ch0->BacklashMode=BACKLASH_OFF;
> > ch0->BacklashAmount=0;
> > ch0->BacklashRate=0;
> > ch0->invDistPerCycle=1;
> > ch0->Lead=0;
> > ch0->MaxFollowingError=4000;
> > ch0->StepperAmplitude=250;
> >
> > ch0->iir[0].B0=1;
> > ch0->iir[0].B1=0;
> > ch0->iir[0].B2=0;
> > ch0->iir[0].A1=0;
> > ch0->iir[0].A2=0;
> >
> > ch0->iir[1].B0=1;
> > ch0->iir[1].B1=0;
> > ch0->iir[1].B2=0;
> > ch0->iir[1].A1=0;
> > ch0->iir[1].A2=0;
> >
> > ch0->iir[2].B0=1;
> > ch0->iir[2].B1=0;
> > ch0->iir[2].B2=0;
> > ch0->iir[2].A1=0;
> > ch0->iir[2].A2=0;
> >
> > EnableAxisDest (0,ch0->Position);
> >
> > DefineCordSystem (0,-1,-1,-1);
> >
> > return 0;
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Arthur,
> > >
> > > I didn't see a new file uploaded.
> > >
> > > Now that you have one axis working you are ready to try driving it from
> >Mach3. 
> >
> > >
> > > You need to make a C program that Mach can use to configure KFlop.
> > >
> > > Follow the procedure described here (you are now at step 4)
> > >
> > > http://www.dynomotion.com/Help/Mach3Plugin/Mach3.htm
> > >
> > > Start with some Example Initialization program such as InitStepDir3Axis.c. 
>
> > > Paste your configuration over the ch0 settings.  Remove all the settings
> >for
> >
> > >ch1
> > >
> > > and ch2.
> > >
> > > Change the DefineCoordSystem call to just define one ch0 axis in the system
> >as
> >
> > >X
> > >
> > > by: 
> > >
> > >
> > > DefineCoordSystem(0,-1,-1,-1);
> > >
> > > Also change the Enable statement from:
> > >
> > > EnableAxisDest(0,0);
> > >
> > > to
> > >
> > > EnableAxisDest(0, ch0->Position);
> > >
> > > (this will enable the axis and servo at the current encoder position,
> >otherwise
> >
> > >
> > > you might get a rapid motion to a destination of zero)
> > >
> > > Let us know how far you get.
> > >
> > > Regards
> > > TK
> > >
> > >
> > > ________________________________
> > > From: "aeunson@" <aeunson@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Thu, August 12, 2010 1:35:53 AM
> > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > >
> > >  
> > >
> > > Thanks Tom,
> > >
> > > Your support of your product is excellent and I now feel I am getting
> > >somewhere.
> > >
> > > I increased the P gain upto 1.7 where I could just feel the motor oscillate
> >so
> >
> >
> > > reduced it to 0.8.
> > >
> > > The I gain was set to 0.0001,any higher and it seemd to create an overshoot
> >of
> >
> >
> > > the output.
> > >
> > > I also noticed to get a full revolution I had to increase the move to 4096.
> > >
> > > Again I have uploaded the results to the files section.
> > >
> > > Before I move everything out to the workshop and connect up the machine for
> > >real
> > >
> > > I would like to be able to understand getting Mach to work on the single axis
> >I
> >
> > >
> > > have here in the office. I will also connect up home and limit switches.
> > >
> > > Regards
> > >
> > > Arthur
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Congratulations Arthur!  You now have a closed servo loop. 
> > > >
> > > > Since moving 1000 counts results in 1/2 rev, then the resolution must be
> > >about
> > >
> > >
> > > > 2000 counts/rev.
> > > >
> > > > Of course your motion is very slow and sloppy so the next step is to
> >optimize
> >
> > >
> > > > the servo tuning.  Please see:
> > > >
> > > > http://tech.groups.yahoo.com/group/DynoMotion/message/507
> > > >
> > > > Notice in your case, the output (green plot and right side scale) is
> > >clamping
> > >
> > > >at
> > > >
> > > > only 20 DAC counts (~0.1V).  This is because of our max allowed error
> >(200)
> >
> >
> > > >and
> > > >
> > > > very low P gain of 0.1.
> > > >
> > > > Regards
> > > > TK
> > > >
> > > >
> > >
> >
>
Group: DynoMotion Message: 586 From: Tom Kerekes Date: 8/13/2010
Subject: Re: Kflop / Kanalog
Hi Art,
 
No.  In KMotion everything is in counts.  You would change Mach3 "Motor Tuning".  Since you work in mm.  The number of counts/mm would be:
 
4096*2/25.4=322.5196 counts/mm
 
Regards
TK

Group: DynoMotion Message: 587 From: aeunson@btinternet.com Date: 8/14/2010
Subject: Re: Kflop / Kanalog
Hi Tom,

I realised that just before going to bed last night and all is working well.

However I did have to set steps per to 322.5 to get the DRO to read correctly as it was reading low with the calculated value.

I think I can now wait untill I fully complete the machine before I take this any further when I will probably be back with lots of questions.

Once I get it up and running I will post a video of it running but this will be a few weeks

Thanks for yor help. You certainly support your product well.

Best regards

Art

--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Art,
>
> No.  In KMotion everything is in counts.  You would change Mach3 "Motor
> Tuning".  Since you work in mm.  The number of counts/mm would be:
>
> 4096*2/25.4=322.5196 counts/mm
>
> Regards
> TK
>
>
>
>
> ________________________________
> From: "aeunson@..." <aeunson@...>
> To: DynoMotion@yahoogroups.com
> Sent: Fri, August 13, 2010 4:50:05 PM
> Subject: [DynoMotion] Re: Kflop / Kanalog
>
>  
>
> Hi Tom,
>
> This motor is conected to a ballscrew which is 2 turns to the inch.
>
> Do I change this in kmotion and re-write the c prog?
>
> Regards
>
> Art
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Arthur,
> >
> > I don't see anything specifically wrong in the Mach3Mill.xml file.  It seems
> >to
> >
> > work for me.  Apparently Mach3 has an issue where it saves the XML file into
> > whatever the current directory is when you exit which I think can result in
> >lost
> >
> > changes and confusion.  Also sometimes the units inexplicably change from
> >inches
> >
> > to mm mode, so check if somehow your base units somehow got switched to mm.
> >
> > Maybe check what feed rate you specified?
> >
> > I see you set the resolution to 4096 which is the number of encoder
> >counts/motor
> >
> > rev.  Usually mills have a lead screw with about 5 turns/inch so the correct
> > value would probably be more like 5x4096.
> >
> > Let us know how it goes and thanks for participating in the Group.
> >
> > TK
> >
> >
> >
> >
> > ________________________________
> > From: "aeunson@" <aeunson@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Fri, August 13, 2010 8:26:29 AM
> > Subject: [DynoMotion] Re: Kflop / Kanalog
> >
> >  
> > Hi Tom
> >
> > I have it working.
> > Given a G0 x200 it will drive to 200. G0 x100 it will return to 100 and G0 x0
> >it
> >
> > returns to zero.
> > G1 & G2 are very very slow.
> >
> > But it is slow so I posted the xml file into the files section to see where I
> > have gone wrong.
> >
> > All the motors are the same but the x & y axis are different gearing so I
> >should
> >
> > be able to figure them out now.
> >
> > It going to be a couple of weeks before I get working on the full table but I
> >am
> >
> > very pleased I can now drive a single motor with mach3 and prove it will work.
> >
> > Regards
> >
> > Arthur
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Arthur,
> > >
> > > Strange.  What about a G1 or G2 move of for example 1 inch?
> > >
> > > What is your Mach3 Motor Tuning - Resolution, Vel, Accel, Units?
> > >
> > > Maybe you should send your Mach3 XML file.
> > >
> > > TK
> > >
> > >
> > >
> > >
> > > ________________________________
> > > From: "aeunson@" <aeunson@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Thu, August 12, 2010 4:40:40 PM
> > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > >
> > >  
> > >
> > > Hi Tom,
> > >
> > > Nearly there but not quite.
> > >
> > > When I Jog in mach it will continue to run in one direction untill I jog in
> >the
> >
> > >
> > > opposite direction where it will still keep running.
> > >
> > > Here is the program I ended up with.
> > >
> > > Regards
> > >
> > > Arthur
> > >
> > > ch0->InputMode=ENCODER_MODE;
> > > ch0->OutputMode=DAC_SERVO_MODE;
> > > ch0->Vel=10000;
> > > ch0->Accel=100000;
> > > ch0->Jerk=1000000;
> > > ch0->P=0.8000000119209;
> > > ch0->I=9.999999747379e-005;
> > > ch0->D=0;
> > > ch0->FFAccel=0;
> > > ch0->FFVel=0;
> > > ch0->MaxI=200;
> > > ch0->MaxErr=200;
> > > ch0->MaxOutput=2047;
> > > ch0->DeadBandGain=1;
> > > ch0->DeadBandRange=0;
> > > ch0->InputChan0=0;
> > > ch0->InputChan1=1;
> > > ch0->OutputChan0=0;
> > > ch0->OutputChan1=1;
> > > ch0->MasterAxis=-1;
> > > ch0->LimitSwitchOptions=0x0;
> > > ch0->InputGain0=-1;
> > > ch0->InputGain1=1;
> > > ch0->InputOffset0=0;
> > > ch0->InputOffset1=0;
> > > ch0->OutputGain=1;
> > > ch0->OutputOffset=0;
> > > ch0->SlaveGain=1;
> > > ch0->BacklashMode=BACKLASH_OFF;
> > > ch0->BacklashAmount=0;
> > > ch0->BacklashRate=0;
> > > ch0->invDistPerCycle=1;
> > > ch0->Lead=0;
> > > ch0->MaxFollowingError=4000;
> > > ch0->StepperAmplitude=250;
> > >
> > > ch0->iir[0].B0=1;
> > > ch0->iir[0].B1=0;
> > > ch0->iir[0].B2=0;
> > > ch0->iir[0].A1=0;
> > > ch0->iir[0].A2=0;
> > >
> > > ch0->iir[1].B0=1;
> > > ch0->iir[1].B1=0;
> > > ch0->iir[1].B2=0;
> > > ch0->iir[1].A1=0;
> > > ch0->iir[1].A2=0;
> > >
> > > ch0->iir[2].B0=1;
> > > ch0->iir[2].B1=0;
> > > ch0->iir[2].B2=0;
> > > ch0->iir[2].A1=0;
> > > ch0->iir[2].A2=0;
> > >
> > > EnableAxisDest (0,ch0->Position);
> > >
> > > DefineCordSystem (0,-1,-1,-1);
> > >
> > > return 0;
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Hi Arthur,
> > > >
> > > > I didn't see a new file uploaded.
> > > >
> > > > Now that you have one axis working you are ready to try driving it from
> > >Mach3. 
> > >
> > > >
> > > > You need to make a C program that Mach can use to configure KFlop.
> > > >
> > > > Follow the procedure described here (you are now at step 4)
> > > >
> > > > http://www.dynomotion.com/Help/Mach3Plugin/Mach3.htm
> > > >
> > > > Start with some Example Initialization program such as
> >InitStepDir3Axis.c. 
> >
> >
> > > > Paste your configuration over the ch0 settings.  Remove all the
> >settings
> >
> > >for
> > >
> > > >ch1
> > > >
> > > > and ch2.
> > > >
> > > > Change the DefineCoordSystem call to just define one ch0 axis in the
> >system
> >
> > >as
> > >
> > > >X
> > > >
> > > > by: 
> > > >
> > > >
> > > > DefineCoordSystem(0,-1,-1,-1);
> > > >
> > > > Also change the Enable statement from:
> > > >
> > > > EnableAxisDest(0,0);
> > > >
> > > > to
> > > >
> > > > EnableAxisDest(0, ch0->Position);
> > > >
> > > > (this will enable the axis and servo at the current encoder position,
> > >otherwise
> > >
> > > >
> > > > you might get a rapid motion to a destination of zero)
> > > >
> > > > Let us know how far you get.
> > > >
> > > > Regards
> > > > TK
> > > >
> > > >
> > > > ________________________________
> > > > From: "aeunson@" <aeunson@>
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Thu, August 12, 2010 1:35:53 AM
> > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > >
> > > >  
> > > >
> > > > Thanks Tom,
> > > >
> > > > Your support of your product is excellent and I now feel I am getting
> > > >somewhere.
> > > >
> > > > I increased the P gain upto 1.7 where I could just feel the motor oscillate
> >
> > >so
> > >
> > >
> > > > reduced it to 0.8.
> > > >
> > > > The I gain was set to 0.0001,any higher and it seemd to create an overshoot
> >
> > >of
> > >
> > >
> > > > the output.
> > > >
> > > > I also noticed to get a full revolution I had to increase the move to
> 4096.
> > > >
> > > > Again I have uploaded the results to the files section.
> > > >
> > > > Before I move everything out to the workshop and connect up the machine for
> >
> > > >real
> > > >
> > > > I would like to be able to understand getting Mach to work on the single
> >axis
> >
> > >I
> > >
> > > >
> > > > have here in the office. I will also connect up home and limit switches.
> > > >
> > > > Regards
> > > >
> > > > Arthur
> > > >
> > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > >
> > > > > Congratulations Arthur!ÃÆ'‚  You now have a closed servo
> >loop.ÃÆ'‚ 
> >
> > > > >
> > > > > Since moving 1000 counts results in 1/2 rev, then the resolution must be
>
> > > >about
> > > >
> > > >
> > > > > 2000 counts/rev.
> > > > >
> > > > > Of course your motion is very slow and sloppy so the next step is to
> > >optimize
> > >
> > > >
> > > > > the servo tuning.ÃÆ'‚  Please see:
> > > > >
> > > > > http://tech.groups.yahoo.com/group/DynoMotion/message/507
> > > > >
> > > > > Notice in your case, the output (green plot and right side
> >scale)ÃÆ'‚ is
> >
> > > >clamping
> > > >
> > > > >at
> > > > >
> > > > > only 20 DAC counts (~0.1V).ÃÆ'‚  This is because of our max allowed
> >error
> >
> > >(200)
> > >
> > >
> > > > >and
> > > > >
> > > > > very lowÃÆ'‚ P gain of 0.1.
> > > > >
> > > > > Regards
> > > > > TK
> > > > >
> > > > >
> > > >
> > >
> >
>
Group: DynoMotion Message: 667 From: aeunson@btinternet.com Date: 9/27/2010
Subject: Re: Kflop / Kanalog
Hi Tom

I have finaly managed to get some time on the router.

I have the x & y axis connected and the motor tuning all set up so that I can accurately drive the table in Mach a set amount but if I try and drive it anymore than 45mm at a time the table stops and I get this message: "dynamotion status all axes disabled"

Any idea where I have gone wrong?

Art

--- In DynoMotion@yahoogroups.com, "aeunson@..." <aeunson@...> wrote:
>
>
> Hi Tom,
>
> I realised that just before going to bed last night and all is working well.
>
> However I did have to set steps per to 322.5 to get the DRO to read correctly as it was reading low with the calculated value.
>
> I think I can now wait untill I fully complete the machine before I take this any further when I will probably be back with lots of questions.
>
> Once I get it up and running I will post a video of it running but this will be a few weeks
>
> Thanks for yor help. You certainly support your product well.
>
> Best regards
>
> Art
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Art,
> >
> > No.  In KMotion everything is in counts.  You would change Mach3 "Motor
> > Tuning".  Since you work in mm.  The number of counts/mm would be:
> >
> > 4096*2/25.4=322.5196 counts/mm
> >
> > Regards
> > TK
> >
> >
> >
> >
> > ________________________________
> > From: "aeunson@" <aeunson@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Fri, August 13, 2010 4:50:05 PM
> > Subject: [DynoMotion] Re: Kflop / Kanalog
> >
> >  
> >
> > Hi Tom,
> >
> > This motor is conected to a ballscrew which is 2 turns to the inch.
> >
> > Do I change this in kmotion and re-write the c prog?
> >
> > Regards
> >
> > Art
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Arthur,
> > >
> > > I don't see anything specifically wrong in the Mach3Mill.xml file.  It seems
> > >to
> > >
> > > work for me.  Apparently Mach3 has an issue where it saves the XML file into
> > > whatever the current directory is when you exit which I think can result in
> > >lost
> > >
> > > changes and confusion.  Also sometimes the units inexplicably change from
> > >inches
> > >
> > > to mm mode, so check if somehow your base units somehow got switched to mm.
> > >
> > > Maybe check what feed rate you specified?
> > >
> > > I see you set the resolution to 4096 which is the number of encoder
> > >counts/motor
> > >
> > > rev.  Usually mills have a lead screw with about 5 turns/inch so the correct
> > > value would probably be more like 5x4096.
> > >
> > > Let us know how it goes and thanks for participating in the Group.
> > >
> > > TK
> > >
> > >
> > >
> > >
> > > ________________________________
> > > From: "aeunson@" <aeunson@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Fri, August 13, 2010 8:26:29 AM
> > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > >
> > >  
> > > Hi Tom
> > >
> > > I have it working.
> > > Given a G0 x200 it will drive to 200. G0 x100 it will return to 100 and G0 x0
> > >it
> > >
> > > returns to zero.
> > > G1 & G2 are very very slow.
> > >
> > > But it is slow so I posted the xml file into the files section to see where I
> > > have gone wrong.
> > >
> > > All the motors are the same but the x & y axis are different gearing so I
> > >should
> > >
> > > be able to figure them out now.
> > >
> > > It going to be a couple of weeks before I get working on the full table but I
> > >am
> > >
> > > very pleased I can now drive a single motor with mach3 and prove it will work.
> > >
> > > Regards
> > >
> > > Arthur
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Hi Arthur,
> > > >
> > > > Strange.  What about a G1 or G2 move of for example 1 inch?
> > > >
> > > > What is your Mach3 Motor Tuning - Resolution, Vel, Accel, Units?
> > > >
> > > > Maybe you should send your Mach3 XML file.
> > > >
> > > > TK
> > > >
> > > >
> > > >
> > > >
> > > > ________________________________
> > > > From: "aeunson@" <aeunson@>
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Thu, August 12, 2010 4:40:40 PM
> > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > >
> > > >  
> > > >
> > > > Hi Tom,
> > > >
> > > > Nearly there but not quite.
> > > >
> > > > When I Jog in mach it will continue to run in one direction untill I jog in
> > >the
> > >
> > > >
> > > > opposite direction where it will still keep running.
> > > >
> > > > Here is the program I ended up with.
> > > >
> > > > Regards
> > > >
> > > > Arthur
> > > >
> > > > ch0->InputMode=ENCODER_MODE;
> > > > ch0->OutputMode=DAC_SERVO_MODE;
> > > > ch0->Vel=10000;
> > > > ch0->Accel=100000;
> > > > ch0->Jerk=1000000;
> > > > ch0->P=0.8000000119209;
> > > > ch0->I=9.999999747379e-005;
> > > > ch0->D=0;
> > > > ch0->FFAccel=0;
> > > > ch0->FFVel=0;
> > > > ch0->MaxI=200;
> > > > ch0->MaxErr=200;
> > > > ch0->MaxOutput=2047;
> > > > ch0->DeadBandGain=1;
> > > > ch0->DeadBandRange=0;
> > > > ch0->InputChan0=0;
> > > > ch0->InputChan1=1;
> > > > ch0->OutputChan0=0;
> > > > ch0->OutputChan1=1;
> > > > ch0->MasterAxis=-1;
> > > > ch0->LimitSwitchOptions=0x0;
> > > > ch0->InputGain0=-1;
> > > > ch0->InputGain1=1;
> > > > ch0->InputOffset0=0;
> > > > ch0->InputOffset1=0;
> > > > ch0->OutputGain=1;
> > > > ch0->OutputOffset=0;
> > > > ch0->SlaveGain=1;
> > > > ch0->BacklashMode=BACKLASH_OFF;
> > > > ch0->BacklashAmount=0;
> > > > ch0->BacklashRate=0;
> > > > ch0->invDistPerCycle=1;
> > > > ch0->Lead=0;
> > > > ch0->MaxFollowingError=4000;
> > > > ch0->StepperAmplitude=250;
> > > >
> > > > ch0->iir[0].B0=1;
> > > > ch0->iir[0].B1=0;
> > > > ch0->iir[0].B2=0;
> > > > ch0->iir[0].A1=0;
> > > > ch0->iir[0].A2=0;
> > > >
> > > > ch0->iir[1].B0=1;
> > > > ch0->iir[1].B1=0;
> > > > ch0->iir[1].B2=0;
> > > > ch0->iir[1].A1=0;
> > > > ch0->iir[1].A2=0;
> > > >
> > > > ch0->iir[2].B0=1;
> > > > ch0->iir[2].B1=0;
> > > > ch0->iir[2].B2=0;
> > > > ch0->iir[2].A1=0;
> > > > ch0->iir[2].A2=0;
> > > >
> > > > EnableAxisDest (0,ch0->Position);
> > > >
> > > > DefineCordSystem (0,-1,-1,-1);
> > > >
> > > > return 0;
> > > >
> > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > >
> > > > > Hi Arthur,
> > > > >
> > > > > I didn't see a new file uploaded.
> > > > >
> > > > > Now that you have one axis working you are ready to try driving it from
> > > >Mach3. 
> > > >
> > > > >
> > > > > You need to make a C program that Mach can use to configure KFlop.
> > > > >
> > > > > Follow the procedure described here (you are now at step 4)
> > > > >
> > > > > http://www.dynomotion.com/Help/Mach3Plugin/Mach3.htm
> > > > >
> > > > > Start with some Example Initialization program such as
> > >InitStepDir3Axis.c. 
> > >
> > >
> > > > > Paste your configuration over the ch0 settings.  Remove all the
> > >settings
> > >
> > > >for
> > > >
> > > > >ch1
> > > > >
> > > > > and ch2.
> > > > >
> > > > > Change the DefineCoordSystem call to just define one ch0 axis in the
> > >system
> > >
> > > >as
> > > >
> > > > >X
> > > > >
> > > > > by: 
> > > > >
> > > > >
> > > > > DefineCoordSystem(0,-1,-1,-1);
> > > > >
> > > > > Also change the Enable statement from:
> > > > >
> > > > > EnableAxisDest(0,0);
> > > > >
> > > > > to
> > > > >
> > > > > EnableAxisDest(0, ch0->Position);
> > > > >
> > > > > (this will enable the axis and servo at the current encoder position,
> > > >otherwise
> > > >
> > > > >
> > > > > you might get a rapid motion to a destination of zero)
> > > > >
> > > > > Let us know how far you get.
> > > > >
> > > > > Regards
> > > > > TK
> > > > >
> > > > >
> > > > > ________________________________
> > > > > From: "aeunson@" <aeunson@>
> > > > > To: DynoMotion@yahoogroups.com
> > > > > Sent: Thu, August 12, 2010 1:35:53 AM
> > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > >
> > > > >  
> > > > >
> > > > > Thanks Tom,
> > > > >
> > > > > Your support of your product is excellent and I now feel I am getting
> > > > >somewhere.
> > > > >
> > > > > I increased the P gain upto 1.7 where I could just feel the motor oscillate
> > >
> > > >so
> > > >
> > > >
> > > > > reduced it to 0.8.
> > > > >
> > > > > The I gain was set to 0.0001,any higher and it seemd to create an overshoot
> > >
> > > >of
> > > >
> > > >
> > > > > the output.
> > > > >
> > > > > I also noticed to get a full revolution I had to increase the move to
> > 4096.
> > > > >
> > > > > Again I have uploaded the results to the files section.
> > > > >
> > > > > Before I move everything out to the workshop and connect up the machine for
> > >
> > > > >real
> > > > >
> > > > > I would like to be able to understand getting Mach to work on the single
> > >axis
> > >
> > > >I
> > > >
> > > > >
> > > > > have here in the office. I will also connect up home and limit switches.
> > > > >
> > > > > Regards
> > > > >
> > > > > Arthur
> > > > >
> > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > >
> > > > > > Congratulations Arthur!ÃÆ'‚  You now have a closed servo
> > >loop.ÃÆ'‚ 
> > >
> > > > > >
> > > > > > Since moving 1000 counts results in 1/2 rev, then the resolution must be
> >
> > > > >about
> > > > >
> > > > >
> > > > > > 2000 counts/rev.
> > > > > >
> > > > > > Of course your motion is very slow and sloppy so the next step is to
> > > >optimize
> > > >
> > > > >
> > > > > > the servo tuning.ÃÆ'‚  Please see:
> > > > > >
> > > > > > http://tech.groups.yahoo.com/group/DynoMotion/message/507
> > > > > >
> > > > > > Notice in your case, the output (green plot and right side
> > >scale)ÃÆ'‚ is
> > >
> > > > >clamping
> > > > >
> > > > > >at
> > > > > >
> > > > > > only 20 DAC counts (~0.1V).ÃÆ'‚  This is because of our max allowed
> > >error
> > >
> > > >(200)
> > > >
> > > >
> > > > > >and
> > > > > >
> > > > > > very lowÃÆ'‚ P gain of 0.1.
> > > > > >
> > > > > > Regards
> > > > > > TK
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
Group: DynoMotion Message: 668 From: Tom Kerekes Date: 9/27/2010
Subject: Re: Kflop / Kanalog
Hi Art,
 
Is there a message in the KMotion Console screen such as "Following error..."?
 
Before attempting to use Mach3 you should tune the motors using the KMotion Step Response Screen and verify that you can make moves at your needed speeds and accuracies.  What are your following errors for a 45mm move?
 
Regards
TK 

Group: DynoMotion Message: 669 From: aeunson@btinternet.com Date: 9/27/2010
Subject: Re: Kflop / Kanalog
Tom,

There is the message in the console "Following error 0 axis disabled

I did tune them in the response screen before running Mach a few weeks ago.

Regards

Art
--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Art,
>
> Is there a message in the KMotion Console screen such as "Following error..."?
>
> Before attempting to use Mach3 you should tune the motors using the KMotion Step
> Response Screen and verify that you can make moves at your needed speeds and
> accuracies.  What are your following errors for a 45mm move?
>
> Regards
> TK 
>
>
>
>
> ________________________________
> From: "aeunson@..." <aeunson@...>
> To: DynoMotion@yahoogroups.com
> Sent: Mon, September 27, 2010 10:56:07 AM
> Subject: [DynoMotion] Re: Kflop / Kanalog
>
>  
> Hi Tom
>
> I have finaly managed to get some time on the router.
>
> I have the x & y axis connected and the motor tuning all set up so that I can
> accurately drive the table in Mach a set amount but if I try and drive it
> anymore than 45mm at a time the table stops and I get this message: "dynamotion
> status all axes disabled"
>
> Any idea where I have gone wrong?
>
> Art
>
> --- In DynoMotion@yahoogroups.com, "aeunson@" <aeunson@> wrote:
> >
> >
> > Hi Tom,
> >
> > I realised that just before going to bed last night and all is working well.
> >
> > However I did have to set steps per to 322.5 to get the DRO to read correctly
> >as it was reading low with the calculated value.
> >
> > I think I can now wait untill I fully complete the machine before I take this
> >any further when I will probably be back with lots of questions.
> >
> > Once I get it up and running I will post a video of it running but this will be
> >a few weeks
> >
> > Thanks for yor help. You certainly support your product well.
> >
> > Best regards
> >
> > Art
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Art,
> > >
> > > No.  In KMotion everything is in counts.  You would change Mach3 "Motor
> > > Tuning".  Since you work in mm.  The number of counts/mm would be:
> > >
> > > 4096*2/25.4=322.5196 counts/mm
> > >
> > > Regards
> > > TK
> > >
> > >
> > >
> > >
> > > ________________________________
> > > From: "aeunson@" <aeunson@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Fri, August 13, 2010 4:50:05 PM
> > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > >
> > >  
> > >
> > > Hi Tom,
> > >
> > > This motor is conected to a ballscrew which is 2 turns to the inch.
> > >
> > > Do I change this in kmotion and re-write the c prog?
> > >
> > > Regards
> > >
> > > Art
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Hi Arthur,
> > > >
> > > > I don't see anything specifically wrong in the Mach3Mill.xml file.  It
> >seems
> >
> > > >to
> > > >
> > > > work for me.  Apparently Mach3 has an issue where it saves the XML file
> >into
> >
> > > > whatever the current directory is when you exit which I think can result in
> >
> > > >lost
> > > >
> > > > changes and confusion.  Also sometimes the units inexplicably change
> >from
> >
> > > >inches
> > > >
> > > > to mm mode, so check if somehow your base units somehow got switched to
> mm.
> > > >
> > > > Maybe check what feed rate you specified?
> > > >
> > > > I see you set the resolution to 4096 which is the number of encoder
> > > >counts/motor
> > > >
> > > > rev.  Usually mills have a lead screw with about 5 turns/inch so the
> >correct
> >
> > > > value would probably be more like 5x4096.
> > > >
> > > > Let us know how it goes and thanks for participating in the Group.
> > > >
> > > > TK
> > > >
> > > >
> > > >
> > > >
> > > > ________________________________
> > > > From: "aeunson@" <aeunson@>
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Fri, August 13, 2010 8:26:29 AM
> > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > >
> > > >  
> > > > Hi Tom
> > > >
> > > > I have it working.
> > > > Given a G0 x200 it will drive to 200. G0 x100 it will return to 100 and G0
> >x0
> >
> > > >it
> > > >
> > > > returns to zero.
> > > > G1 & G2 are very very slow.
> > > >
> > > > But it is slow so I posted the xml file into the files section to see where
> >I
> >
> > > > have gone wrong.
> > > >
> > > > All the motors are the same but the x & y axis are different gearing so I
> > > >should
> > > >
> > > > be able to figure them out now.
> > > >
> > > > It going to be a couple of weeks before I get working on the full table but
> >I
> >
> > > >am
> > > >
> > > > very pleased I can now drive a single motor with mach3 and prove it will
> >work.
> > > >
> > > > Regards
> > > >
> > > > Arthur
> > > >
> > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > >
> > > > > Hi Arthur,
> > > > >
> > > > > Strange.ÃÆ'‚  What about a G1 or G2 move of for example 1 inch?
> > > > >
> > > > > What is your Mach3 Motor Tuning - Resolution, Vel, Accel, Units?
> > > > >
> > > > > Maybe you should send your Mach3 XML file.
> > > > >
> > > > > TK
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > ________________________________
> > > > > From: "aeunson@" <aeunson@>
> > > > > To: DynoMotion@yahoogroups.com
> > > > > Sent: Thu, August 12, 2010 4:40:40 PM
> > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > >
> > > > > ÃÆ'‚ 
> > > > >
> > > > > Hi Tom,
> > > > >
> > > > > Nearly there but not quite.
> > > > >
> > > > > When I Jog in mach it will continue to run in one direction untill I jog
> >in
> >
> > > >the
> > > >
> > > > >
> > > > > opposite direction where it will still keep running.
> > > > >
> > > > > Here is the program I ended up with.
> > > > >
> > > > > Regards
> > > > >
> > > > > Arthur
> > > > >
> > > > > ch0->InputMode=ENCODER_MODE;
> > > > > ch0->OutputMode=DAC_SERVO_MODE;
> > > > > ch0->Vel=10000;
> > > > > ch0->Accel=100000;
> > > > > ch0->Jerk=1000000;
> > > > > ch0->P=0.8000000119209;
> > > > > ch0->I=9.999999747379e-005;
> > > > > ch0->D=0;
> > > > > ch0->FFAccel=0;
> > > > > ch0->FFVel=0;
> > > > > ch0->MaxI=200;
> > > > > ch0->MaxErr=200;
> > > > > ch0->MaxOutput=2047;
> > > > > ch0->DeadBandGain=1;
> > > > > ch0->DeadBandRange=0;
> > > > > ch0->InputChan0=0;
> > > > > ch0->InputChan1=1;
> > > > > ch0->OutputChan0=0;
> > > > > ch0->OutputChan1=1;
> > > > > ch0->MasterAxis=-1;
> > > > > ch0->LimitSwitchOptions=0x0;
> > > > > ch0->InputGain0=-1;
> > > > > ch0->InputGain1=1;
> > > > > ch0->InputOffset0=0;
> > > > > ch0->InputOffset1=0;
> > > > > ch0->OutputGain=1;
> > > > > ch0->OutputOffset=0;
> > > > > ch0->SlaveGain=1;
> > > > > ch0->BacklashMode=BACKLASH_OFF;
> > > > > ch0->BacklashAmount=0;
> > > > > ch0->BacklashRate=0;
> > > > > ch0->invDistPerCycle=1;
> > > > > ch0->Lead=0;
> > > > > ch0->MaxFollowingError=4000;
> > > > > ch0->StepperAmplitude=250;
> > > > >
> > > > > ch0->iir[0].B0=1;
> > > > > ch0->iir[0].B1=0;
> > > > > ch0->iir[0].B2=0;
> > > > > ch0->iir[0].A1=0;
> > > > > ch0->iir[0].A2=0;
> > > > >
> > > > > ch0->iir[1].B0=1;
> > > > > ch0->iir[1].B1=0;
> > > > > ch0->iir[1].B2=0;
> > > > > ch0->iir[1].A1=0;
> > > > > ch0->iir[1].A2=0;
> > > > >
> > > > > ch0->iir[2].B0=1;
> > > > > ch0->iir[2].B1=0;
> > > > > ch0->iir[2].B2=0;
> > > > > ch0->iir[2].A1=0;
> > > > > ch0->iir[2].A2=0;
> > > > >
> > > > > EnableAxisDest (0,ch0->Position);
> > > > >
> > > > > DefineCordSystem (0,-1,-1,-1);
> > > > >
> > > > > return 0;
> > > > >
> > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > >
> > > > > > Hi Arthur,
> > > > > >
> > > > > > I didn't see a new file uploaded.
> > > > > >
> > > > > > Now that you have one axis working you are ready to try driving it from
> >
> > > > >Mach3.ÃÆ'‚ 
> > > > >
> > > > > >
> > > > > > You need to make a C program that Mach can use to configure KFlop.
> > > > > >
> > > > > > Follow the procedure described here (you are now at step 4)
> > > > > >
> > > > > > http://www.dynomotion.com/Help/Mach3Plugin/Mach3.htm
> > > > > >
> > > > > > Start with some Example Initialization program such as
> > > >InitStepDir3Axis.c.ÃÆ'‚ 
> > > >
> > > >
> > > > > > Paste yourÃÆ'‚ configuration over the ch0 settings.ÃÆ'‚  Remove
> >all the
> >
> > > >settings
> > > >
> > > > >for
> > > > >
> > > > > >ch1
> > > > > >
> > > > > > and ch2.
> > > > > >
> > > > > > Change the DefineCoordSystemÃÆ'‚ call to just define one ch0 axis
> >in the
> >
> > > >system
> > > >
> > > > >as
> > > > >
> > > > > >X
> > > > > >
> > > > > > by:ÃÆ'‚ 
> > > > > >
> > > > > >
> > > > > > DefineCoordSystem(0,-1,-1,-1);
> > > > > >
> > > > > > Also change the Enable statement from:
> > > > > >
> > > > > > EnableAxisDest(0,0);
> > > > > >
> > > > > > to
> > > > > >
> > > > > > EnableAxisDest(0, ch0->Position);
> > > > > >
> > > > > > (this will enable the axis and servo at the current encoder position,
> > > > >otherwise
> > > > >
> > > > > >
> > > > > > you might get a rapid motion to a destination of zero)
> > > > > >
> > > > > > Let us know how far you get.
> > > > > >
> > > > > > Regards
> > > > > > TK
> > > > > >
> > > > > >
> > > > > > ________________________________
> > > > > > From: "aeunson@" <aeunson@>
> > > > > > To: DynoMotion@yahoogroups.com
> > > > > > Sent: Thu, August 12, 2010 1:35:53 AM
> > > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > > >
> > > > > > ÃÆ'‚ 
> > > > > >
> > > > > > Thanks Tom,
> > > > > >
> > > > > > Your support of your product is excellent and I now feel I am getting
> > > > > >somewhere.
> > > > > >
> > > > > > I increased the P gain upto 1.7 where I could just feel the motor
> >oscillate
> >
> > > >
> > > > >so
> > > > >
> > > > >
> > > > > > reduced it to 0.8.
> > > > > >
> > > > > > The I gain was set to 0.0001,any higher and it seemd to create an
> >overshoot
> >
> > > >
> > > > >of
> > > > >
> > > > >
> > > > > > the output.
> > > > > >
> > > > > > I also noticed to get a full revolution I had to increase the move to
> > > 4096.
> > > > > >
> > > > > > Again I have uploaded the results to the files section.
> > > > > >
> > > > > > Before I move everything out to the workshop and connect up the machine
> >for
> >
> > > >
> > > > > >real
> > > > > >
> > > > > > I would like to be able to understand getting Mach to work on the
> >single
> >
> > > >axis
> > > >
> > > > >I
> > > > >
> > > > > >
> > > > > > have here in the office. I will also connect up home and limit
> >switches.
> > > > > >
> > > > > > Regards
> > > > > >
> > > > > > Arthur
> > > > > >
> > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > >
> > > > > > > Congratulations Arthur!ÃÆ'Æ'‚ÃÆ'‚  You now have a closed
> >servo
> >
> > > >loop.ÃÆ'Æ'‚ÃÆ'‚ 
> > > >
> > > > > > >
> > > > > > > Since moving 1000 counts results in 1/2 rev, then the resolution must
> >be
> >
> > >
> > > > > >about
> > > > > >
> > > > > >
> > > > > > > 2000 counts/rev.
> > > > > > >
> > > > > > > Of course your motion is very slow and sloppy so the next step is to
>
> > > > >optimize
> > > > >
> > > > > >
> > > > > > > the servo tuning.ÃÆ'Æ'‚ÃÆ'‚  Please see:
> > > > > > >
> > > > > > > http://tech.groups.yahoo.com/group/DynoMotion/message/507
> > > > > > >
> > > > > > > Notice in your case, the output (green plot and right side
> > > >scale)ÃÆ'Æ'‚ÃÆ'‚ is
> > > >
> > > > > >clamping
> > > > > >
> > > > > > >at
> > > > > > >
> > > > > > > only 20 DAC counts (~0.1V).ÃÆ'Æ'‚ÃÆ'‚  This is because of
> >our max allowed
> >
> > > >error
> > > >
> > > > >(200)
> > > > >
> > > > >
> > > > > > >and
> > > > > > >
> > > > > > > very lowÃÆ'Æ'‚ÃÆ'‚ P gain of 0.1.
> > > > > > >
> > > > > > > Regards
> > > > > > > TK
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
Group: DynoMotion Message: 670 From: Tom Kerekes Date: 9/27/2010
Subject: Re: Kflop / Kanalog
Art,
 
Well you need to test the motion on the Step Response Screen for the same type of motion you are attempting under Mach3 to see a respective response.  For example making a small/slow move from the Step Response screen may show small following errors, but a large, faster, higher acceleration move under Mach3 may have large following errors. 
 
#1 What Velocity and Acceleration do you have Mach3 "Tuning" Set at?
 
#2 What following error setting are you using?
 
#3 Mach3 motions are not Jerk Limited so set the KMotion Jerk value 100X the acceleration value to see a similar motion.
 
#4 convert the Mach3 Vel and Accel values to encoder counts (multiply by counts per mm)
 
#5 plot a 90mm motion (Command, Position, Output)
 
TK
 
 

Group: DynoMotion Message: 671 From: aeunson@btinternet.com Date: 9/27/2010
Subject: Re: Kflop / Kanalog
Tom

I have uploaded the mach motor tuning screenshot and the kmotion screen shot.

The servo with linear actuator connected is 7mm / motor rev. the resolution is 4096 per rev.

If the velocity in mach is any more than 5000 I get a follower error.
At 5000 the movement of the table is quite slow but accurate.

I also converted the mach figures as advised and ran them in kmotion where the table seemed to move even slower.

Please advise where you think I have gone wrong.

Regards

Art

--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Art,
>
> Well you need to test the motion on the Step Response Screen for the same type
> of motion you are attempting under Mach3 to see a respective response.  For
> example making a small/slow move from the Step Response screen may show small
> following errors, but a large, faster, higher acceleration move under Mach3 may
> have large following errors. 
>
> #1 What Velocity and Acceleration do you have Mach3 "Tuning" Set at?
>
> #2 What following error setting are you using?
>
> #3 Mach3 motions are not Jerk Limited so set the KMotion Jerk value 100X the
> acceleration value to see a similar motion.
>
> #4 convert the Mach3 Vel and Accel values to encoder counts (multiply by counts
> per mm)
>
> #5 plot a 90mm motion (Command, Position, Output)
>
> TK
>
>
>
>
>
>
> ________________________________
> From: "aeunson@..." <aeunson@...>
> To: DynoMotion@yahoogroups.com
> Sent: Mon, September 27, 2010 1:05:52 PM
> Subject: [DynoMotion] Re: Kflop / Kanalog
>
>  
>
> Tom,
>
> There is the message in the console "Following error 0 axis disabled
>
> I did tune them in the response screen before running Mach a few weeks ago.
>
> Regards
>
> Art
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Art,
> >
> > Is there a message in the KMotion Console screen such as "Following error..."?
> >
> > Before attempting to use Mach3 you should tune the motors using the KMotion
> >Step
> >
> > Response Screen and verify that you can make moves at your needed speeds and
> > accuracies.  What are your following errors for a 45mm move?
> >
> > Regards
> > TK 
> >
> >
> >
> >
> > ________________________________
> > From: "aeunson@" <aeunson@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Mon, September 27, 2010 10:56:07 AM
> > Subject: [DynoMotion] Re: Kflop / Kanalog
> >
> >  
> > Hi Tom
> >
> > I have finaly managed to get some time on the router.
> >
> > I have the x & y axis connected and the motor tuning all set up so that I can
> > accurately drive the table in Mach a set amount but if I try and drive it
> > anymore than 45mm at a time the table stops and I get this message: "dynamotion
> >
> > status all axes disabled"
> >
> > Any idea where I have gone wrong?
> >
> > Art
> >
> > --- In DynoMotion@yahoogroups.com, "aeunson@" <aeunson@> wrote:
> > >
> > >
> > > Hi Tom,
> > >
> > > I realised that just before going to bed last night and all is working well.
> > >
> > > However I did have to set steps per to 322.5 to get the DRO to read correctly
> >
> > >as it was reading low with the calculated value.
> > >
> > > I think I can now wait untill I fully complete the machine before I take this
> >
> > >any further when I will probably be back with lots of questions.
> > >
> > > Once I get it up and running I will post a video of it running but this will
> >be
> >
> > >a few weeks
> > >
> > > Thanks for yor help. You certainly support your product well.
> > >
> > > Best regards
> > >
> > > Art
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Hi Art,
> > > >
> > > > No.  In KMotion everything is in counts.  You would change Mach3
> >"Motor
> >
> > > > Tuning".  Since you work in mm.  The number of counts/mm would be:
> > > >
> > > > 4096*2/25.4=322.5196 counts/mm
> > > >
> > > > Regards
> > > > TK
> > > >
> > > >
> > > >
> > > >
> > > > ________________________________
> > > > From: "aeunson@" <aeunson@>
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Fri, August 13, 2010 4:50:05 PM
> > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > >
> > > >  
> > > >
> > > > Hi Tom,
> > > >
> > > > This motor is conected to a ballscrew which is 2 turns to the inch.
> > > >
> > > > Do I change this in kmotion and re-write the c prog?
> > > >
> > > > Regards
> > > >
> > > > Art
> > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > >
> > > > > Hi Arthur,
> > > > >
> > > > > I don't see anything specifically wrong in the Mach3Mill.xml
> >file.ÃÆ'‚  It
> >
> > >seems
> > >
> > > > >to
> > > > >
> > > > > work for me.ÃÆ'‚  Apparently Mach3 has an issue where it saves the
> >XML file
> >
> > >into
> > >
> > > > > whatever the current directory is when you exit which I think can result
> >in
> >
> > >
> > > > >lost
> > > > >
> > > > > changes and confusion.ÃÆ'‚  Also sometimes the units inexplicably
> >change
> >
> > >from
> > >
> > > > >inches
> > > > >
> > > > > to mm mode, so check if somehow your base units somehow got switched to
> > mm.
> > > > >
> > > > > Maybe check what feed rate you specified?
> > > > >
> > > > > I see you set the resolution to 4096 which is the number of encoder
> > > > >counts/motor
> > > > >
> > > > > rev.ÃÆ'‚  Usually mills have a lead screw with about 5 turns/inch so
> >the
> >
> > >correct
> > >
> > > > > value would probably be more like 5x4096.
> > > > >
> > > > > Let us know how it goes and thanks for participating in the Group.
> > > > >
> > > > > TK
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > ________________________________
> > > > > From: "aeunson@" <aeunson@>
> > > > > To: DynoMotion@yahoogroups.com
> > > > > Sent: Fri, August 13, 2010 8:26:29 AM
> > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > >
> > > > > ÃÆ'‚ 
> > > > > Hi Tom
> > > > >
> > > > > I have it working.
> > > > > Given a G0 x200 it will drive to 200. G0 x100 it will return to 100 and
> >G0
> >
> > >x0
> > >
> > > > >it
> > > > >
> > > > > returns to zero.
> > > > > G1 & G2 are very very slow.
> > > > >
> > > > > But it is slow so I posted the xml file into the files section to see
> >where
> >
> > >I
> > >
> > > > > have gone wrong.
> > > > >
> > > > > All the motors are the same but the x & y axis are different gearing so I
> >
> > > > >should
> > > > >
> > > > > be able to figure them out now.
> > > > >
> > > > > It going to be a couple of weeks before I get working on the full table
> >but
> >
> > >I
> > >
> > > > >am
> > > > >
> > > > > very pleased I can now drive a single motor with mach3 and prove it will
>
> > >work.
> > > > >
> > > > > Regards
> > > > >
> > > > > Arthur
> > > > >
> > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > >
> > > > > > Hi Arthur,
> > > > > >
> > > > > > Strange.ÃÆ'Æ'‚ÃÆ'‚  What about a G1 or G2 move of for example
> >1 inch?
> > > > > >
> > > > > > What is your Mach3 Motor Tuning - Resolution, Vel, Accel, Units?
> > > > > >
> > > > > > Maybe you should send your Mach3 XML file.
> > > > > >
> > > > > > TK
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > ________________________________
> > > > > > From: "aeunson@" <aeunson@>
> > > > > > To: DynoMotion@yahoogroups.com
> > > > > > Sent: Thu, August 12, 2010 4:40:40 PM
> > > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > > >
> > > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > >
> > > > > > Hi Tom,
> > > > > >
> > > > > > Nearly there but not quite.
> > > > > >
> > > > > > When I Jog in mach it will continue to run in one direction untill I
> >jog
> >
> > >in
> > >
> > > > >the
> > > > >
> > > > > >
> > > > > > opposite direction where it will still keep running.
> > > > > >
> > > > > > Here is the program I ended up with.
> > > > > >
> > > > > > Regards
> > > > > >
> > > > > > Arthur
> > > > > >
> > > > > > ch0->InputMode=ENCODER_MODE;
> > > > > > ch0->OutputMode=DAC_SERVO_MODE;
> > > > > > ch0->Vel=10000;
> > > > > > ch0->Accel=100000;
> > > > > > ch0->Jerk=1000000;
> > > > > > ch0->P=0.8000000119209;
> > > > > > ch0->I=9.999999747379e-005;
> > > > > > ch0->D=0;
> > > > > > ch0->FFAccel=0;
> > > > > > ch0->FFVel=0;
> > > > > > ch0->MaxI=200;
> > > > > > ch0->MaxErr=200;
> > > > > > ch0->MaxOutput=2047;
> > > > > > ch0->DeadBandGain=1;
> > > > > > ch0->DeadBandRange=0;
> > > > > > ch0->InputChan0=0;
> > > > > > ch0->InputChan1=1;
> > > > > > ch0->OutputChan0=0;
> > > > > > ch0->OutputChan1=1;
> > > > > > ch0->MasterAxis=-1;
> > > > > > ch0->LimitSwitchOptions=0x0;
> > > > > > ch0->InputGain0=-1;
> > > > > > ch0->InputGain1=1;
> > > > > > ch0->InputOffset0=0;
> > > > > > ch0->InputOffset1=0;
> > > > > > ch0->OutputGain=1;
> > > > > > ch0->OutputOffset=0;
> > > > > > ch0->SlaveGain=1;
> > > > > > ch0->BacklashMode=BACKLASH_OFF;
> > > > > > ch0->BacklashAmount=0;
> > > > > > ch0->BacklashRate=0;
> > > > > > ch0->invDistPerCycle=1;
> > > > > > ch0->Lead=0;
> > > > > > ch0->MaxFollowingError=4000;
> > > > > > ch0->StepperAmplitude=250;
> > > > > >
> > > > > > ch0->iir[0].B0=1;
> > > > > > ch0->iir[0].B1=0;
> > > > > > ch0->iir[0].B2=0;
> > > > > > ch0->iir[0].A1=0;
> > > > > > ch0->iir[0].A2=0;
> > > > > >
> > > > > > ch0->iir[1].B0=1;
> > > > > > ch0->iir[1].B1=0;
> > > > > > ch0->iir[1].B2=0;
> > > > > > ch0->iir[1].A1=0;
> > > > > > ch0->iir[1].A2=0;
> > > > > >
> > > > > > ch0->iir[2].B0=1;
> > > > > > ch0->iir[2].B1=0;
> > > > > > ch0->iir[2].B2=0;
> > > > > > ch0->iir[2].A1=0;
> > > > > > ch0->iir[2].A2=0;
> > > > > >
> > > > > > EnableAxisDest (0,ch0->Position);
> > > > > >
> > > > > > DefineCordSystem (0,-1,-1,-1);
> > > > > >
> > > > > > return 0;
> > > > > >
> > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > >
> > > > > > > Hi Arthur,
> > > > > > >
> > > > > > > I didn't see a new file uploaded.
> > > > > > >
> > > > > > > Now that you have one axis working you are ready to try driving it
> >from
> >
> > >
> > > > > >Mach3.ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > >
> > > > > > >
> > > > > > > You need to make a C program that Mach can use to configure KFlop.
> > > > > > >
> > > > > > > Follow the procedure described here (you are now at step 4)
> > > > > > >
> > > > > > > http://www.dynomotion.com/Help/Mach3Plugin/Mach3.htm
> > > > > > >
> > > > > > > Start with some Example Initialization program such as
> > > > >InitStepDir3Axis.c.ÃÆ'Æ'‚ÃÆ'‚ 
> > > > >
> > > > >
> > > > > > > Paste yourÃÆ'Æ'‚ÃÆ'‚ configuration over the ch0
> >settings.ÃÆ'Æ'‚ÃÆ'‚  Remove
> >
> > >all the
> > >
> > > > >settings
> > > > >
> > > > > >for
> > > > > >
> > > > > > >ch1
> > > > > > >
> > > > > > > and ch2.
> > > > > > >
> > > > > > > Change the DefineCoordSystemÃÆ'Æ'‚ÃÆ'‚ call to just define
> >one ch0 axis
> >
> > >in the
> > >
> > > > >system
> > > > >
> > > > > >as
> > > > > >
> > > > > > >X
> > > > > > >
> > > > > > > by:ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > >
> > > > > > >
> > > > > > > DefineCoordSystem(0,-1,-1,-1);
> > > > > > >
> > > > > > > Also change the Enable statement from:
> > > > > > >
> > > > > > > EnableAxisDest(0,0);
> > > > > > >
> > > > > > > to
> > > > > > >
> > > > > > > EnableAxisDest(0, ch0->Position);
> > > > > > >
> > > > > > > (this will enable the axis and servo at the current encoder position,
> >
> > > > > >otherwise
> > > > > >
> > > > > > >
> > > > > > > you might get a rapid motion to a destination of zero)
> > > > > > >
> > > > > > > Let us know how far you get.
> > > > > > >
> > > > > > > Regards
> > > > > > > TK
> > > > > > >
> > > > > > >
> > > > > > > ________________________________
> > > > > > > From: "aeunson@" <aeunson@>
> > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > Sent: Thu, August 12, 2010 1:35:53 AM
> > > > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > > > >
> > > > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > >
> > > > > > > Thanks Tom,
> > > > > > >
> > > > > > > Your support of your product is excellent and I now feel I am getting
> >
> > > > > > >somewhere.
> > > > > > >
> > > > > > > I increased the P gain upto 1.7 where I could just feel the motor
> > >oscillate
> > >
> > > > >
> > > > > >so
> > > > > >
> > > > > >
> > > > > > > reduced it to 0.8.
> > > > > > >
> > > > > > > The I gain was set to 0.0001,any higher and it seemd to create an
> > >overshoot
> > >
> > > > >
> > > > > >of
> > > > > >
> > > > > >
> > > > > > > the output.
> > > > > > >
> > > > > > > I also noticed to get a full revolution I had to increase the move to
> >
> > > > 4096.
> > > > > > >
> > > > > > > Again I have uploaded the results to the files section.
> > > > > > >
> > > > > > > Before I move everything out to the workshop and connect up the
> >machine
> >
> > >for
> > >
> > > > >
> > > > > > >real
> > > > > > >
> > > > > > > I would like to be able to understand getting Mach to work on the
> > >single
> > >
> > > > >axis
> > > > >
> > > > > >I
> > > > > >
> > > > > > >
> > > > > > > have here in the office. I will also connect up home and limit
> > >switches.
> > > > > > >
> > > > > > > Regards
> > > > > > >
> > > > > > > Arthur
> > > > > > >
> > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > >
> > > > > > > > Congratulations Arthur!ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> >You now have a closed
> >
> > >servo
> > >
> > > > >loop.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > >
> > > > > > > >
> > > > > > > > Since moving 1000 counts results in 1/2 rev, then the resolution
> >must
> >
> > >be
> > >
> > > >
> > > > > > >about
> > > > > > >
> > > > > > >
> > > > > > > > 2000 counts/rev.
> > > > > > > >
> > > > > > > > Of course your motion is very slow and sloppy so the next step is
> >to
> >
> >
> > > > > >optimize
> > > > > >
> > > > > > >
> > > > > > > > the servo tuning.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Please
> >see:
> > > > > > > >
> > > > > > > > http://tech.groups.yahoo.com/group/DynoMotion/message/507
> > > > > > > >
> > > > > > > > Notice in your case, the output (green plot and right side
> > > > >scale)ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ is
> > > > >
> > > > > > >clamping
> > > > > > >
> > > > > > > >at
> > > > > > > >
> > > > > > > > only 20 DAC counts
> >(~0.1V).ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  This is because of
> >
> > >our max allowed
> > >
> > > > >error
> > > > >
> > > > > >(200)
> > > > > >
> > > > > >
> > > > > > > >and
> > > > > > > >
> > > > > > > > very lowÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ P gain of 0.1.
> > > > > > > >
> > > > > > > > Regards
> > > > > > > > TK
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
Group: DynoMotion Message: 672 From: Tom Kerekes Date: 9/27/2010
Subject: Re: Kflop / Kanalog
Hi Art,
 
Your Jerk setting is extremely low.
 
With a Jerk limit of only 3000 cnts/sec^3 and a max acceleration of 175542 cnts/sec^2 it would take:
 
175542/3000 = 58 seconds
 
before the acceleration would ramp up to the maximum you are specifying.  Mach3 has no Jerk limit, it applies the full acceleration you specify instantly.  So to see a similar motion that equates to what Mach3 is generating, set the Jerk to a much bigger number like 2e7.  Then the acceleration will be fully applied in a few milliseconds:
 
175542/20000000 = 0.008 seconds.
 
There is also a mistake with the velocity.  Mach3 specifies the max velocity per minute rather than per second so the velocity in counts/sec would be 48761 rather than 2925700.
 
 
After you make these two corrections the motion on the Step Response screen will be much faster and you will probably see larger following errors.  You will then be able to tune the system and determine the real limitations of your system.
 
Regards
TK
 

Group: DynoMotion Message: 673 From: aeunson@btinternet.com Date: 9/28/2010
Subject: Re: Kflop / Kanalog
Thanks Tom

I see that now you have explained it.

I have changed the paramaters as suggested and tried tuning the system.

To get the command and position to track I have increased the p gain to 1.2, this allows me to make a move upto 10000 before the output starts to distort.

Above 10000 the output on the return starts to distort so I then increased the feed forward V to 0.003. this let me increase the move to 90000 before the output distorts.

I then tried to increase the velocity but the output starts to distort again.

The x axis is 800mm and the movement still seems quite slow.

I am not sure if I am changing the correct parameters can you please advise.

I have uploaded some screenshots

Regards

Art

--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Art,
>
> Your Jerk setting is extremely low.
>
> With a Jerk limit of only 3000 cnts/sec^3 and a max acceleration of 175542
> cnts/sec^2 it would take:
>
> 175542/3000 = 58 seconds
>
> before the acceleration would ramp up to the maximum you are specifying.  Mach3
> has no Jerk limit, it applies the full acceleration you specify instantly.  So
> to see a similar motion that equates to what Mach3 is generating, set the Jerk
> to a much bigger number like 2e7.  Then the acceleration will be fully applied
> in a few milliseconds:
>
> 175542/20000000 = 0.008 seconds.
>
>
> There is also a mistake with the velocity.  Mach3 specifies the max velocity per
> minute rather than per second so the velocity in counts/sec would be 48761
> rather than 2925700.
>
>
> After you make these two corrections the motion on the Step Response screen will
> be much faster and you will probably see larger following errors.  You will then
> be able to tune the system and determine the real limitations of your system.
>
> Regards
> TK
>
>
>
>
> ________________________________
> From: "aeunson@..." <aeunson@...>
> To: DynoMotion@yahoogroups.com
> Sent: Mon, September 27, 2010 3:09:52 PM
> Subject: [DynoMotion] Re: Kflop / Kanalog
>
>  
> Tom
>
> I have uploaded the mach motor tuning screenshot and the kmotion screen shot.
>
> The servo with linear actuator connected is 7mm / motor rev. the resolution is
> 4096 per rev.
>
> If the velocity in mach is any more than 5000 I get a follower error.
> At 5000 the movement of the table is quite slow but accurate.
>
> I also converted the mach figures as advised and ran them in kmotion where the
> table seemed to move even slower.
>
> Please advise where you think I have gone wrong.
>
> Regards
>
> Art
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Art,
> >
> > Well you need to test the motion on the Step Response Screen for the same type
>
> > of motion you are attempting under Mach3 to see a respective response.  For
> > example making a small/slow move from the Step Response screen may show small
> > following errors, but a large, faster, higher acceleration move under Mach3 may
> >
> > have large following errors. 
> >
> > #1 What Velocity and Acceleration do you have Mach3 "Tuning" Set at?
> >
> > #2 What following error setting are you using?
> >
> > #3 Mach3 motions are not Jerk Limited so set the KMotion Jerk value 100X the
> > acceleration value to see a similar motion.
> >
> > #4 convert the Mach3 Vel and Accel values to encoder counts (multiply by counts
> >
> > per mm)
> >
> > #5 plot a 90mm motion (Command, Position, Output)
> >
> > TK
> >
> >
> >
> >
> >
> >
> > ________________________________
> > From: "aeunson@" <aeunson@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Mon, September 27, 2010 1:05:52 PM
> > Subject: [DynoMotion] Re: Kflop / Kanalog
> >
> >  
> >
> > Tom,
> >
> > There is the message in the console "Following error 0 axis disabled
> >
> > I did tune them in the response screen before running Mach a few weeks ago.
> >
> > Regards
> >
> > Art
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Art,
> > >
> > > Is there a message in the KMotion Console screen such as "Following
> >error..."?
> > >
> > > Before attempting to use Mach3 you should tune the motors using the KMotion
> > >Step
> > >
> > > Response Screen and verify that you can make moves at your needed speeds and
>
> > > accuracies.  What are your following errors for a 45mm move?
> > >
> > > Regards
> > > TK 
> > >
> > >
> > >
> > >
> > > ________________________________
> > > From: "aeunson@" <aeunson@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Mon, September 27, 2010 10:56:07 AM
> > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > >
> > >  
> > > Hi Tom
> > >
> > > I have finaly managed to get some time on the router.
> > >
> > > I have the x & y axis connected and the motor tuning all set up so that I can
> >
> > > accurately drive the table in Mach a set amount but if I try and drive it
> > > anymore than 45mm at a time the table stops and I get this message:
> >"dynamotion
> >
> > >
> > > status all axes disabled"
> > >
> > > Any idea where I have gone wrong?
> > >
> > > Art
> > >
> > > --- In DynoMotion@yahoogroups.com, "aeunson@" <aeunson@> wrote:
> > > >
> > > >
> > > > Hi Tom,
> > > >
> > > > I realised that just before going to bed last night and all is working
> >well.
> > > >
> > > > However I did have to set steps per to 322.5 to get the DRO to read
> >correctly
> >
> > >
> > > >as it was reading low with the calculated value.
> > > >
> > > > I think I can now wait untill I fully complete the machine before I take
> >this
> >
> > >
> > > >any further when I will probably be back with lots of questions.
> > > >
> > > > Once I get it up and running I will post a video of it running but this
> >will
> >
> > >be
> > >
> > > >a few weeks
> > > >
> > > > Thanks for yor help. You certainly support your product well.
> > > >
> > > > Best regards
> > > >
> > > > Art
> > > >
> > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > >
> > > > > Hi Art,
> > > > >
> > > > > No.ÃÆ'‚  In KMotion everything is in counts.ÃÆ'‚  You would
> >change Mach3
> >
> > >"Motor
> > >
> > > > > Tuning".ÃÆ'‚  Since you work in mm.ÃÆ'‚  The number of counts/mm
> >would be:
> > > > >
> > > > > 4096*2/25.4=322.5196 counts/mm
> > > > >
> > > > > Regards
> > > > > TK
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > ________________________________
> > > > > From: "aeunson@" <aeunson@>
> > > > > To: DynoMotion@yahoogroups.com
> > > > > Sent: Fri, August 13, 2010 4:50:05 PM
> > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > >
> > > > > ÃÆ'‚ 
> > > > >
> > > > > Hi Tom,
> > > > >
> > > > > This motor is conected to a ballscrew which is 2 turns to the inch.
> > > > >
> > > > > Do I change this in kmotion and re-write the c prog?
> > > > >
> > > > > Regards
> > > > >
> > > > > Art
> > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > >
> > > > > > Hi Arthur,
> > > > > >
> > > > > > I don't see anything specifically wrong in the Mach3Mill.xml
> > >file.ÃÆ'Æ'‚ÃÆ'‚  It
> > >
> > > >seems
> > > >
> > > > > >to
> > > > > >
> > > > > > work for me.ÃÆ'Æ'‚ÃÆ'‚  Apparently Mach3 has an issue where it
> >saves the
> >
> > >XML file
> > >
> > > >into
> > > >
> > > > > > whatever the current directory is when you exit which I think can
> >result
> >
> > >in
> > >
> > > >
> > > > > >lost
> > > > > >
> > > > > > changes and confusion.ÃÆ'Æ'‚ÃÆ'‚  Also sometimes the units
> >inexplicably
> >
> > >change
> > >
> > > >from
> > > >
> > > > > >inches
> > > > > >
> > > > > > to mm mode, so check if somehow your base units somehow got switched to
> >
> > > mm.
> > > > > >
> > > > > > Maybe check what feed rate you specified?
> > > > > >
> > > > > > I see you set the resolution to 4096 which is the number of encoder
> > > > > >counts/motor
> > > > > >
> > > > > > rev.ÃÆ'Æ'‚ÃÆ'‚  Usually mills have a lead screw with about 5
> >turns/inch so
> >
> > >the
> > >
> > > >correct
> > > >
> > > > > > value would probably be more like 5x4096.
> > > > > >
> > > > > > Let us know how it goes and thanks for participating in the Group.
> > > > > >
> > > > > > TK
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > ________________________________
> > > > > > From: "aeunson@" <aeunson@>
> > > > > > To: DynoMotion@yahoogroups.com
> > > > > > Sent: Fri, August 13, 2010 8:26:29 AM
> > > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > > >
> > > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > Hi Tom
> > > > > >
> > > > > > I have it working.
> > > > > > Given a G0 x200 it will drive to 200. G0 x100 it will return to 100 and
> >
> > >G0
> > >
> > > >x0
> > > >
> > > > > >it
> > > > > >
> > > > > > returns to zero.
> > > > > > G1 & G2 are very very slow.
> > > > > >
> > > > > > But it is slow so I posted the xml file into the files section to see
> > >where
> > >
> > > >I
> > > >
> > > > > > have gone wrong.
> > > > > >
> > > > > > All the motors are the same but the x & y axis are different gearing so
> >I
> >
> > >
> > > > > >should
> > > > > >
> > > > > > be able to figure them out now.
> > > > > >
> > > > > > It going to be a couple of weeks before I get working on the full table
> >
> > >but
> > >
> > > >I
> > > >
> > > > > >am
> > > > > >
> > > > > > very pleased I can now drive a single motor with mach3 and prove it
> >will
> >
> >
> > > >work.
> > > > > >
> > > > > > Regards
> > > > > >
> > > > > > Arthur
> > > > > >
> > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > >
> > > > > > > Hi Arthur,
> > > > > > >
> > > > > > > Strange.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  What about a G1 or
> >G2 move of for example
> >
> > >1 inch?
> > > > > > >
> > > > > > > What is your Mach3 Motor Tuning - Resolution, Vel, Accel, Units?
> > > > > > >
> > > > > > > Maybe you should send your Mach3 XML file.
> > > > > > >
> > > > > > > TK
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > ________________________________
> > > > > > > From: "aeunson@" <aeunson@>
> > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > Sent: Thu, August 12, 2010 4:40:40 PM
> > > > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > > > >
> > > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > >
> > > > > > > Hi Tom,
> > > > > > >
> > > > > > > Nearly there but not quite.
> > > > > > >
> > > > > > > When I Jog in mach it will continue to run in one direction untill I
>
> > >jog
> > >
> > > >in
> > > >
> > > > > >the
> > > > > >
> > > > > > >
> > > > > > > opposite direction where it will still keep running.
> > > > > > >
> > > > > > > Here is the program I ended up with.
> > > > > > >
> > > > > > > Regards
> > > > > > >
> > > > > > > Arthur
> > > > > > >
> > > > > > > ch0->InputMode=ENCODER_MODE;
> > > > > > > ch0->OutputMode=DAC_SERVO_MODE;
> > > > > > > ch0->Vel=10000;
> > > > > > > ch0->Accel=100000;
> > > > > > > ch0->Jerk=1000000;
> > > > > > > ch0->P=0.8000000119209;
> > > > > > > ch0->I=9.999999747379e-005;
> > > > > > > ch0->D=0;
> > > > > > > ch0->FFAccel=0;
> > > > > > > ch0->FFVel=0;
> > > > > > > ch0->MaxI=200;
> > > > > > > ch0->MaxErr=200;
> > > > > > > ch0->MaxOutput=2047;
> > > > > > > ch0->DeadBandGain=1;
> > > > > > > ch0->DeadBandRange=0;
> > > > > > > ch0->InputChan0=0;
> > > > > > > ch0->InputChan1=1;
> > > > > > > ch0->OutputChan0=0;
> > > > > > > ch0->OutputChan1=1;
> > > > > > > ch0->MasterAxis=-1;
> > > > > > > ch0->LimitSwitchOptions=0x0;
> > > > > > > ch0->InputGain0=-1;
> > > > > > > ch0->InputGain1=1;
> > > > > > > ch0->InputOffset0=0;
> > > > > > > ch0->InputOffset1=0;
> > > > > > > ch0->OutputGain=1;
> > > > > > > ch0->OutputOffset=0;
> > > > > > > ch0->SlaveGain=1;
> > > > > > > ch0->BacklashMode=BACKLASH_OFF;
> > > > > > > ch0->BacklashAmount=0;
> > > > > > > ch0->BacklashRate=0;
> > > > > > > ch0->invDistPerCycle=1;
> > > > > > > ch0->Lead=0;
> > > > > > > ch0->MaxFollowingError=4000;
> > > > > > > ch0->StepperAmplitude=250;
> > > > > > >
> > > > > > > ch0->iir[0].B0=1;
> > > > > > > ch0->iir[0].B1=0;
> > > > > > > ch0->iir[0].B2=0;
> > > > > > > ch0->iir[0].A1=0;
> > > > > > > ch0->iir[0].A2=0;
> > > > > > >
> > > > > > > ch0->iir[1].B0=1;
> > > > > > > ch0->iir[1].B1=0;
> > > > > > > ch0->iir[1].B2=0;
> > > > > > > ch0->iir[1].A1=0;
> > > > > > > ch0->iir[1].A2=0;
> > > > > > >
> > > > > > > ch0->iir[2].B0=1;
> > > > > > > ch0->iir[2].B1=0;
> > > > > > > ch0->iir[2].B2=0;
> > > > > > > ch0->iir[2].A1=0;
> > > > > > > ch0->iir[2].A2=0;
> > > > > > >
> > > > > > > EnableAxisDest (0,ch0->Position);
> > > > > > >
> > > > > > > DefineCordSystem (0,-1,-1,-1);
> > > > > > >
> > > > > > > return 0;
> > > > > > >
> > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > >
> > > > > > > > Hi Arthur,
> > > > > > > >
> > > > > > > > I didn't see a new file uploaded.
> > > > > > > >
> > > > > > > > Now that you have one axis working you are ready to try driving it
>
> > >from
> > >
> > > >
> > > > > > >Mach3.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > >
> > > > > > > >
> > > > > > > > You need to make a C program that Mach can use to configure KFlop.
> > > > > > > >
> > > > > > > > Follow the procedure described here (you are now at step 4)
> > > > > > > >
> > > > > > > > http://www.dynomotion.com/Help/Mach3Plugin/Mach3.htm
> > > > > > > >
> > > > > > > > Start with some Example Initialization program such as
> > > > > >InitStepDir3Axis.c.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > >
> > > > > >
> > > > > > > > Paste yourÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ configuration
> >over the ch0
> >
> > >settings.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Remove
> > >
> > > >all the
> > > >
> > > > > >settings
> > > > > >
> > > > > > >for
> > > > > > >
> > > > > > > >ch1
> > > > > > > >
> > > > > > > > and ch2.
> > > > > > > >
> > > > > > > > Change the
> >DefineCoordSystemÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ call to just define
> >
> > >one ch0 axis
> > >
> > > >in the
> > > >
> > > > > >system
> > > > > >
> > > > > > >as
> > > > > > >
> > > > > > > >X
> > > > > > > >
> > > > > > > > by:ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > >
> > > > > > > >
> > > > > > > > DefineCoordSystem(0,-1,-1,-1);
> > > > > > > >
> > > > > > > > Also change the Enable statement from:
> > > > > > > >
> > > > > > > > EnableAxisDest(0,0);
> > > > > > > >
> > > > > > > > to
> > > > > > > >
> > > > > > > > EnableAxisDest(0, ch0->Position);
> > > > > > > >
> > > > > > > > (this will enable the axis and servo at the current encoder
> >position,
> >
> > >
> > > > > > >otherwise
> > > > > > >
> > > > > > > >
> > > > > > > > you might get a rapid motion to a destination of zero)
> > > > > > > >
> > > > > > > > Let us know how far you get.
> > > > > > > >
> > > > > > > > Regards
> > > > > > > > TK
> > > > > > > >
> > > > > > > >
> > > > > > > > ________________________________
> > > > > > > > From: "aeunson@" <aeunson@>
> > > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > > Sent: Thu, August 12, 2010 1:35:53 AM
> > > > > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > > > > >
> > > > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > >
> > > > > > > > Thanks Tom,
> > > > > > > >
> > > > > > > > Your support of your product is excellent and I now feel I am
> >getting
> >
> > >
> > > > > > > >somewhere.
> > > > > > > >
> > > > > > > > I increased the P gain upto 1.7 where I could just feel the motor
> > > >oscillate
> > > >
> > > > > >
> > > > > > >so
> > > > > > >
> > > > > > >
> > > > > > > > reduced it to 0.8.
> > > > > > > >
> > > > > > > > The I gain was set to 0.0001,any higher and it seemd to create an
> > > >overshoot
> > > >
> > > > > >
> > > > > > >of
> > > > > > >
> > > > > > >
> > > > > > > > the output.
> > > > > > > >
> > > > > > > > I also noticed to get a full revolution I had to increase the move
> >to
> >
> > >
> > > > > 4096.
> > > > > > > >
> > > > > > > > Again I have uploaded the results to the files section.
> > > > > > > >
> > > > > > > > Before I move everything out to the workshop and connect up the
> > >machine
> > >
> > > >for
> > > >
> > > > > >
> > > > > > > >real
> > > > > > > >
> > > > > > > > I would like to be able to understand getting Mach to work on the
> > > >single
> > > >
> > > > > >axis
> > > > > >
> > > > > > >I
> > > > > > >
> > > > > > > >
> > > > > > > > have here in the office. I will also connect up home and limit
> > > >switches.
> > > > > > > >
> > > > > > > > Regards
> > > > > > > >
> > > > > > > > Arthur
> > > > > > > >
> > > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > >
> > > > > > > > > Congratulations
> >Arthur!ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> >
> > >You now have a closed
> > >
> > > >servo
> > > >
> > > > >
> >>loop.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> >
> > > > > >
> > > > > > > > >
> > > > > > > > > Since moving 1000 counts results in 1/2 rev, then the resolution
>
> > >must
> > >
> > > >be
> > > >
> > > > >
> > > > > > > >about
> > > > > > > >
> > > > > > > >
> > > > > > > > > 2000 counts/rev.
> > > > > > > > >
> > > > > > > > > Of course your motion is very slow and sloppy so the next step is
> >
> > >to
> > >
> > >
> > > > > > >optimize
> > > > > > >
> > > > > > > >
> > > > > > > > > the servo
> >tuning.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > Please
> >
> > >see:
> > > > > > > > >
> > > > > > > > > http://tech.groups.yahoo.com/group/DynoMotion/message/507
> > > > > > > > >
> > > > > > > > > Notice in your case, the output (green plot and right side
> > > > >
> >>scale)ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ is
> >
> > > > > >
> > > > > > > >clamping
> > > > > > > >
> > > > > > > > >at
> > > > > > > > >
> > > > > > > > > only 20 DAC counts
> >>(~0.1V).ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> >  This is because of
> >
> > >
> > > >our max allowed
> > > >
> > > > > >error
> > > > > >
> > > > > > >(200)
> > > > > > >
> > > > > > >
> > > > > > > > >and
> > > > > > > > >
> > > > > > > > > very
> >lowÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ P
> > gain of 0.1.
> > > > > > > > >
> > > > > > > > > Regards
> > > > > > > > > TK
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
Group: DynoMotion Message: 674 From: Tom Kerekes Date: 9/28/2010
Subject: Re: Kflop / Kanalog
Hi Art,
 
Try increasing the max integrator from 200 to 2047 as it looks like we need about 600 DAC counts to go at a speed of 100000 cnts/sec.
 
But there is something asymmetrical happening as well.
 
TK

Group: DynoMotion Message: 675 From: aeunson@btinternet.com Date: 9/29/2010
Subject: Re: Kflop / Kanalog
Hi Tom

Increasing the max integrator to 2047 made no difference.

What could cause the asymetrical movement?

I am going to try the other 3 amps to see if they are the same.

Regards

Art

--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Art,
>
> Try increasing the max integrator from 200 to 2047 as it looks like we need
> about 600 DAC counts to go at a speed of 100000 cnts/sec.
>
> But there is something asymmetrical happening as well.
>
> TK
>
>
>
>
> ________________________________
> From: "aeunson@..." <aeunson@...>
> To: DynoMotion@yahoogroups.com
> Sent: Tue, September 28, 2010 1:21:19 PM
> Subject: [DynoMotion] Re: Kflop / Kanalog
>
>  
> Thanks Tom
>
> I see that now you have explained it.
>
> I have changed the paramaters as suggested and tried tuning the system.
>
> To get the command and position to track I have increased the p gain to 1.2,
> this allows me to make a move upto 10000 before the output starts to distort.
>
> Above 10000 the output on the return starts to distort so I then increased the
> feed forward V to 0.003. this let me increase the move to 90000 before the
> output distorts.
>
> I then tried to increase the velocity but the output starts to distort again.
>
> The x axis is 800mm and the movement still seems quite slow.
>
> I am not sure if I am changing the correct parameters can you please advise.
>
> I have uploaded some screenshots
>
> Regards
>
> Art
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Art,
> >
> > Your Jerk setting is extremely low.
> >
> > With a Jerk limit of only 3000 cnts/sec^3 and a max acceleration of 175542
> > cnts/sec^2 it would take:
> >
> > 175542/3000 = 58 seconds
> >
> > before the acceleration would ramp up to the maximum you are specifying. 
> >Mach3
> >
> > has no Jerk limit, it applies the full acceleration you specify instantly.  So
> >
> > to see a similar motion that equates to what Mach3 is generating, set the Jerk
>
> > to a much bigger number like 2e7.  Then the acceleration will be fully applied
> >
> > in a few milliseconds:
> >
> > 175542/20000000 = 0.008 seconds.
> >
> >
> > There is also a mistake with the velocity.  Mach3 specifies the max velocity
> >per
> >
> > minute rather than per second so the velocity in counts/sec would be 48761
> > rather than 2925700.
> >
> >
> > After you make these two corrections the motion on the Step Response screen
> >will
> >
> > be much faster and you will probably see larger following errors.  You will
> >then
> >
> > be able to tune the system and determine the real limitations of your system.
> >
> > Regards
> > TK
> >
> >
> >
> >
> > ________________________________
> > From: "aeunson@" <aeunson@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Mon, September 27, 2010 3:09:52 PM
> > Subject: [DynoMotion] Re: Kflop / Kanalog
> >
> >  
> > Tom
> >
> > I have uploaded the mach motor tuning screenshot and the kmotion screen shot.
> >
> > The servo with linear actuator connected is 7mm / motor rev. the resolution is
>
> > 4096 per rev.
> >
> > If the velocity in mach is any more than 5000 I get a follower error.
> > At 5000 the movement of the table is quite slow but accurate.
> >
> > I also converted the mach figures as advised and ran them in kmotion where the
>
> > table seemed to move even slower.
> >
> > Please advise where you think I have gone wrong.
> >
> > Regards
> >
> > Art
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Art,
> > >
> > > Well you need to test the motion on the Step Response Screen for the same
> >type
> >
> >
> > > of motion you are attempting under Mach3 to see a respective response. 
> >For
> >
> > > example making a small/slow move from the Step Response screen may show small
> >
> > > following errors, but a large, faster, higher acceleration move under Mach3
> >may
> >
> > >
> > > have large following errors. 
> > >
> > > #1 What Velocity and Acceleration do you have Mach3 "Tuning" Set at?
> > >
> > > #2 What following error setting are you using?
> > >
> > > #3 Mach3 motions are not Jerk Limited so set the KMotion Jerk value 100X
> >the
> >
> > > acceleration value to see a similar motion.
> > >
> > > #4 convert the Mach3 Vel and Accel values to encoder counts (multiply by
> >counts
> >
> > >
> > > per mm)
> > >
> > > #5 plot a 90mm motion (Command, Position, Output)
> > >
> > > TK
> > >
> > >
> > >
> > >
> > >
> > >
> > > ________________________________
> > > From: "aeunson@" <aeunson@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Mon, September 27, 2010 1:05:52 PM
> > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > >
> > >  
> > >
> > > Tom,
> > >
> > > There is the message in the console "Following error 0 axis disabled
> > >
> > > I did tune them in the response screen before running Mach a few weeks ago.
> > >
> > > Regards
> > >
> > > Art
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Hi Art,
> > > >
> > > > Is there a message in the KMotion Console screen such as "Following
> > >error..."?
> > > >
> > > > Before attempting to use Mach3 you should tune the motors using the KMotion
> >
> > > >Step
> > > >
> > > > Response Screen and verify that you can make moves at your needed speeds
> >and
> >
> >
> > > > accuracies.ÃÆ'‚  What are your following errors for a 45mm move?
> > > >
> > > > Regards
> > > > TKÃÆ'‚ 
> > > >
> > > >
> > > >
> > > >
> > > > ________________________________
> > > > From: "aeunson@" <aeunson@>
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Mon, September 27, 2010 10:56:07 AM
> > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > >
> > > > ÃÆ'‚ 
> > > > Hi Tom
> > > >
> > > > I have finaly managed to get some time on the router.
> > > >
> > > > I have the x & y axis connected and the motor tuning all set up so that I
> >can
> >
> > >
> > > > accurately drive the table in Mach a set amount but if I try and drive it
> > > > anymore than 45mm at a time the table stops and I get this message:
> > >"dynamotion
> > >
> > > >
> > > > status all axes disabled"
> > > >
> > > > Any idea where I have gone wrong?
> > > >
> > > > Art
> > > >
> > > > --- In DynoMotion@yahoogroups.com, "aeunson@" <aeunson@> wrote:
> > > > >
> > > > >
> > > > > Hi Tom,
> > > > >
> > > > > I realised that just before going to bed last night and all is working
> > >well.
> > > > >
> > > > > However I did have to set steps per to 322.5 to get the DRO to read
> > >correctly
> > >
> > > >
> > > > >as it was reading low with the calculated value.
> > > > >
> > > > > I think I can now wait untill I fully complete the machine before I take
>
> > >this
> > >
> > > >
> > > > >any further when I will probably be back with lots of questions.
> > > > >
> > > > > Once I get it up and running I will post a video of it running but this
> > >will
> > >
> > > >be
> > > >
> > > > >a few weeks
> > > > >
> > > > > Thanks for yor help. You certainly support your product well.
> > > > >
> > > > > Best regards
> > > > >
> > > > > Art
> > > > >
> > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > >
> > > > > > Hi Art,
> > > > > >
> > > > > > No.ÃÆ'Æ'‚ÃÆ'‚  In KMotion everything is in
> >counts.ÃÆ'Æ'‚ÃÆ'‚  You would
> >
> > >change Mach3
> > >
> > > >"Motor
> > > >
> > > > > > Tuning".ÃÆ'Æ'‚ÃÆ'‚  Since you work in mm.ÃÆ'Æ'‚ÃÆ'‚ 
> >The number of counts/mm
> >
> > >would be:
> > > > > >
> > > > > > 4096*2/25.4=322.5196 counts/mm
> > > > > >
> > > > > > Regards
> > > > > > TK
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > ________________________________
> > > > > > From: "aeunson@" <aeunson@>
> > > > > > To: DynoMotion@yahoogroups.com
> > > > > > Sent: Fri, August 13, 2010 4:50:05 PM
> > > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > > >
> > > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > >
> > > > > > Hi Tom,
> > > > > >
> > > > > > This motor is conected to a ballscrew which is 2 turns to the inch.
> > > > > >
> > > > > > Do I change this in kmotion and re-write the c prog?
> > > > > >
> > > > > > Regards
> > > > > >
> > > > > > Art
> > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > >
> > > > > > > Hi Arthur,
> > > > > > >
> > > > > > > I don't see anything specifically wrong in the Mach3Mill.xml
> > > >file.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  It
> > > >
> > > > >seems
> > > > >
> > > > > > >to
> > > > > > >
> > > > > > > work for me.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Apparently
> >Mach3 has an issue where it
> >
> > >saves the
> > >
> > > >XML file
> > > >
> > > > >into
> > > > >
> > > > > > > whatever the current directory is when you exit which I think can
> > >result
> > >
> > > >in
> > > >
> > > > >
> > > > > > >lost
> > > > > > >
> > > > > > > changes and confusion.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Also
> >sometimes the units
> >
> > >inexplicably
> > >
> > > >change
> > > >
> > > > >from
> > > > >
> > > > > > >inches
> > > > > > >
> > > > > > > to mm mode, so check if somehow your base units somehow got switched
> >to
> >
> > >
> > > > mm.
> > > > > > >
> > > > > > > Maybe check what feed rate you specified?
> > > > > > >
> > > > > > > I see you set the resolution to 4096 which is the number of encoder
> > > > > > >counts/motor
> > > > > > >
> > > > > > > rev.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Usually mills have a
> >lead screw with about 5
> >
> > >turns/inch so
> > >
> > > >the
> > > >
> > > > >correct
> > > > >
> > > > > > > value would probably be more like 5x4096.
> > > > > > >
> > > > > > > Let us know how it goes and thanks for participating in the Group.
> > > > > > >
> > > > > > > TK
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > ________________________________
> > > > > > > From: "aeunson@" <aeunson@>
> > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > Sent: Fri, August 13, 2010 8:26:29 AM
> > > > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > > > >
> > > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > Hi Tom
> > > > > > >
> > > > > > > I have it working.
> > > > > > > Given a G0 x200 it will drive to 200. G0 x100 it will return to 100
> >and
> >
> > >
> > > >G0
> > > >
> > > > >x0
> > > > >
> > > > > > >it
> > > > > > >
> > > > > > > returns to zero.
> > > > > > > G1 & G2 are very very slow.
> > > > > > >
> > > > > > > But it is slow so I posted the xml file into the files section to see
> >
> > > >where
> > > >
> > > > >I
> > > > >
> > > > > > > have gone wrong.
> > > > > > >
> > > > > > > All the motors are the same but the x & y axis are different gearing
> >so
> >
> > >I
> > >
> > > >
> > > > > > >should
> > > > > > >
> > > > > > > be able to figure them out now.
> > > > > > >
> > > > > > > It going to be a couple of weeks before I get working on the full
> >table
> >
> > >
> > > >but
> > > >
> > > > >I
> > > > >
> > > > > > >am
> > > > > > >
> > > > > > > very pleased I can now drive a single motor with mach3 and prove it
> > >will
> > >
> > >
> > > > >work.
> > > > > > >
> > > > > > > Regards
> > > > > > >
> > > > > > > Arthur
> > > > > > >
> > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > >
> > > > > > > > Hi Arthur,
> > > > > > > >
> > > > > > > >
> >Strange.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > What about a G1 or
> >
> > >G2 move of for example
> > >
> > > >1 inch?
> > > > > > > >
> > > > > > > > What is your Mach3 Motor Tuning - Resolution, Vel, Accel, Units?
> > > > > > > >
> > > > > > > > Maybe you should send your Mach3 XML file.
> > > > > > > >
> > > > > > > > TK
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > ________________________________
> > > > > > > > From: "aeunson@" <aeunson@>
> > > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > > Sent: Thu, August 12, 2010 4:40:40 PM
> > > > > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > > > > >
> > > > > > > >
> >ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> >
> > > > > > > >
> > > > > > > > Hi Tom,
> > > > > > > >
> > > > > > > > Nearly there but not quite.
> > > > > > > >
> > > > > > > > When I Jog in mach it will continue to run in one direction untill
> >I
> >
> >
> > > >jog
> > > >
> > > > >in
> > > > >
> > > > > > >the
> > > > > > >
> > > > > > > >
> > > > > > > > opposite direction where it will still keep running.
> > > > > > > >
> > > > > > > > Here is the program I ended up with.
> > > > > > > >
> > > > > > > > Regards
> > > > > > > >
> > > > > > > > Arthur
> > > > > > > >
> > > > > > > > ch0->InputMode=ENCODER_MODE;
> > > > > > > > ch0->OutputMode=DAC_SERVO_MODE;
> > > > > > > > ch0->Vel=10000;
> > > > > > > > ch0->Accel=100000;
> > > > > > > > ch0->Jerk=1000000;
> > > > > > > > ch0->P=0.8000000119209;
> > > > > > > > ch0->I=9.999999747379e-005;
> > > > > > > > ch0->D=0;
> > > > > > > > ch0->FFAccel=0;
> > > > > > > > ch0->FFVel=0;
> > > > > > > > ch0->MaxI=200;
> > > > > > > > ch0->MaxErr=200;
> > > > > > > > ch0->MaxOutput=2047;
> > > > > > > > ch0->DeadBandGain=1;
> > > > > > > > ch0->DeadBandRange=0;
> > > > > > > > ch0->InputChan0=0;
> > > > > > > > ch0->InputChan1=1;
> > > > > > > > ch0->OutputChan0=0;
> > > > > > > > ch0->OutputChan1=1;
> > > > > > > > ch0->MasterAxis=-1;
> > > > > > > > ch0->LimitSwitchOptions=0x0;
> > > > > > > > ch0->InputGain0=-1;
> > > > > > > > ch0->InputGain1=1;
> > > > > > > > ch0->InputOffset0=0;
> > > > > > > > ch0->InputOffset1=0;
> > > > > > > > ch0->OutputGain=1;
> > > > > > > > ch0->OutputOffset=0;
> > > > > > > > ch0->SlaveGain=1;
> > > > > > > > ch0->BacklashMode=BACKLASH_OFF;
> > > > > > > > ch0->BacklashAmount=0;
> > > > > > > > ch0->BacklashRate=0;
> > > > > > > > ch0->invDistPerCycle=1;
> > > > > > > > ch0->Lead=0;
> > > > > > > > ch0->MaxFollowingError=4000;
> > > > > > > > ch0->StepperAmplitude=250;
> > > > > > > >
> > > > > > > > ch0->iir[0].B0=1;
> > > > > > > > ch0->iir[0].B1=0;
> > > > > > > > ch0->iir[0].B2=0;
> > > > > > > > ch0->iir[0].A1=0;
> > > > > > > > ch0->iir[0].A2=0;
> > > > > > > >
> > > > > > > > ch0->iir[1].B0=1;
> > > > > > > > ch0->iir[1].B1=0;
> > > > > > > > ch0->iir[1].B2=0;
> > > > > > > > ch0->iir[1].A1=0;
> > > > > > > > ch0->iir[1].A2=0;
> > > > > > > >
> > > > > > > > ch0->iir[2].B0=1;
> > > > > > > > ch0->iir[2].B1=0;
> > > > > > > > ch0->iir[2].B2=0;
> > > > > > > > ch0->iir[2].A1=0;
> > > > > > > > ch0->iir[2].A2=0;
> > > > > > > >
> > > > > > > > EnableAxisDest (0,ch0->Position);
> > > > > > > >
> > > > > > > > DefineCordSystem (0,-1,-1,-1);
> > > > > > > >
> > > > > > > > return 0;
> > > > > > > >
> > > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > >
> > > > > > > > > Hi Arthur,
> > > > > > > > >
> > > > > > > > > I didn't see a new file uploaded.
> > > > > > > > >
> > > > > > > > > Now that you have one axis working you are ready to try driving
> >it
> >
> >
> > > >from
> > > >
> > > > >
> > > > > > >
> >>Mach3.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> >
> > > > > > > >
> > > > > > > > >
> > > > > > > > > You need to make a C program that Mach can use to configure
> >KFlop.
> > > > > > > > >
> > > > > > > > > Follow the procedure described here (you are now at step 4)
> > > > > > > > >
> > > > > > > > > http://www.dynomotion.com/Help/Mach3Plugin/Mach3.htm
> > > > > > > > >
> > > > > > > > > Start with some Example Initialization program such as
> > > > > >
> >>InitStepDir3Axis.c.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> >
> > > > > > >
> > > > > > >
> > > > > > > > > Paste
> >yourÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ configuration
> >
> > >over the ch0
> > >
> > >
> >>settings.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > Remove
> >
> > > >
> > > > >all the
> > > > >
> > > > > > >settings
> > > > > > >
> > > > > > > >for
> > > > > > > >
> > > > > > > > >ch1
> > > > > > > > >
> > > > > > > > > and ch2.
> > > > > > > > >
> > > > > > > > > Change the
> >>DefineCoordSystemÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ call
> >l to just define
> >
> > >
> > > >one ch0 axis
> > > >
> > > > >in the
> > > > >
> > > > > > >system
> > > > > > >
> > > > > > > >as
> > > > > > > >
> > > > > > > > >X
> > > > > > > > >
> > > > > > > > >
> >by:ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > DefineCoordSystem(0,-1,-1,-1);
> > > > > > > > >
> > > > > > > > > Also change the Enable statement from:
> > > > > > > > >
> > > > > > > > > EnableAxisDest(0,0);
> > > > > > > > >
> > > > > > > > > to
> > > > > > > > >
> > > > > > > > > EnableAxisDest(0, ch0->Position);
> > > > > > > > >
> > > > > > > > > (this will enable the axis and servo at the current encoder
> > >position,
> > >
> > > >
> > > > > > > >otherwise
> > > > > > > >
> > > > > > > > >
> > > > > > > > > you might get a rapid motion to a destination of zero)
> > > > > > > > >
> > > > > > > > > Let us know how far you get.
> > > > > > > > >
> > > > > > > > > Regards
> > > > > > > > > TK
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > ________________________________
> > > > > > > > > From: "aeunson@" <aeunson@>
> > > > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > > > Sent: Thu, August 12, 2010 1:35:53 AM
> > > > > > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > > > > > >
> > > > > > > > >
> >ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> >
> > > > > > > > >
> > > > > > > > > Thanks Tom,
> > > > > > > > >
> > > > > > > > > Your support of your product is excellent and I now feel I am
> > >getting
> > >
> > > >
> > > > > > > > >somewhere.
> > > > > > > > >
> > > > > > > > > I increased the P gain upto 1.7 where I could just feel the motor
> >
> > > > >oscillate
> > > > >
> > > > > > >
> > > > > > > >so
> > > > > > > >
> > > > > > > >
> > > > > > > > > reduced it to 0.8.
> > > > > > > > >
> > > > > > > > > The I gain was set to 0.0001,any higher and it seemd to create an
> >
> > > > >overshoot
> > > > >
> > > > > > >
> > > > > > > >of
> > > > > > > >
> > > > > > > >
> > > > > > > > > the output.
> > > > > > > > >
> > > > > > > > > I also noticed to get a full revolution I had to increase the
> >move
> >
> > >to
> > >
> > > >
> > > > > > 4096.
> > > > > > > > >
> > > > > > > > > Again I have uploaded the results to the files section.
> > > > > > > > >
> > > > > > > > > Before I move everything out to the workshop and connect up the
> > > >machine
> > > >
> > > > >for
> > > > >
> > > > > > >
> > > > > > > > >real
> > > > > > > > >
> > > > > > > > > I would like to be able to understand getting Mach to work on the
> >
> > > > >single
> > > > >
> > > > > > >axis
> > > > > > >
> > > > > > > >I
> > > > > > > >
> > > > > > > > >
> > > > > > > > > have here in the office. I will also connect up home and limit
> > > > >switches.
> > > > > > > > >
> > > > > > > > > Regards
> > > > > > > > >
> > > > > > > > > Arthur
> > > > > > > > >
> > > > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > > >
> > > > > > > > > > Congratulations
> >>Arthur!ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > >
> > > >You now have a closed
> > > >
> > > > >servo
> > > > >
> > > > > >
> >>>loop.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > >
> > > > > > >
> > > > > > > > > >
> > > > > > > > > > Since moving 1000 counts results in 1/2 rev, then the
> >resolution
> >
> >
> > > >must
> > > >
> > > > >be
> > > > >
> > > > > >
> > > > > > > > >about
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > > 2000 counts/rev.
> > > > > > > > > >
> > > > > > > > > > Of course your motion is very slow and sloppy so the next step
> >is
> >
> > >
> > > >to
> > > >
> > > >
> > > > > > > >optimize
> > > > > > > >
> > > > > > > > >
> > > > > > > > > > the servo
> >>tuning.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > Please
> > >
> > > >see:
> > > > > > > > > >
> > > > > > > > > > http://tech.groups.yahoo.com/group/DynoMotion/message/507
> > > > > > > > > >
> > > > > > > > > > Notice in your case, the output (green plot and right side
> > > > > >
> >>>scale)ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ is
> >s
> > >
> > > > > > >
> > > > > > > > >clamping
> > > > > > > > >
> > > > > > > > > >at
> > > > > > > > > >
> > > > > > > > > > only 20 DAC counts
> >>>(~0.1V).ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > >  This is because of
> > >
> > > >
> > > > >our max allowed
> > > > >
> > > > > > >error
> > > > > > >
> > > > > > > >(200)
> > > > > > > >
> > > > > > > >
> > > > > > > > > >and
> > > > > > > > > >
> > > > > > > > > > very
> >>lowÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ P
> >P
> > > gain of 0.1.
> > > > > > > > > >
> > > > > > > > > > Regards
> > > > > > > > > > TK
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
Group: DynoMotion Message: 676 From: aeunson@btinternet.com Date: 9/29/2010
Subject: Re: Kflop / Kanalog
Hi again Tom,

The asymetrical movement is the same with 3 motors and 4 amps.

Any idea what could cause this?

Regards

Art

--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Art,
>
> Try increasing the max integrator from 200 to 2047 as it looks like we need
> about 600 DAC counts to go at a speed of 100000 cnts/sec.
>
> But there is something asymmetrical happening as well.
>
> TK
>
>
>
>
> ________________________________
> From: "aeunson@..." <aeunson@...>
> To: DynoMotion@yahoogroups.com
> Sent: Tue, September 28, 2010 1:21:19 PM
> Subject: [DynoMotion] Re: Kflop / Kanalog
>
>  
> Thanks Tom
>
> I see that now you have explained it.
>
> I have changed the paramaters as suggested and tried tuning the system.
>
> To get the command and position to track I have increased the p gain to 1.2,
> this allows me to make a move upto 10000 before the output starts to distort.
>
> Above 10000 the output on the return starts to distort so I then increased the
> feed forward V to 0.003. this let me increase the move to 90000 before the
> output distorts.
>
> I then tried to increase the velocity but the output starts to distort again.
>
> The x axis is 800mm and the movement still seems quite slow.
>
> I am not sure if I am changing the correct parameters can you please advise.
>
> I have uploaded some screenshots
>
> Regards
>
> Art
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Art,
> >
> > Your Jerk setting is extremely low.
> >
> > With a Jerk limit of only 3000 cnts/sec^3 and a max acceleration of 175542
> > cnts/sec^2 it would take:
> >
> > 175542/3000 = 58 seconds
> >
> > before the acceleration would ramp up to the maximum you are specifying. 
> >Mach3
> >
> > has no Jerk limit, it applies the full acceleration you specify instantly.  So
> >
> > to see a similar motion that equates to what Mach3 is generating, set the Jerk
>
> > to a much bigger number like 2e7.  Then the acceleration will be fully applied
> >
> > in a few milliseconds:
> >
> > 175542/20000000 = 0.008 seconds.
> >
> >
> > There is also a mistake with the velocity.  Mach3 specifies the max velocity
> >per
> >
> > minute rather than per second so the velocity in counts/sec would be 48761
> > rather than 2925700.
> >
> >
> > After you make these two corrections the motion on the Step Response screen
> >will
> >
> > be much faster and you will probably see larger following errors.  You will
> >then
> >
> > be able to tune the system and determine the real limitations of your system.
> >
> > Regards
> > TK
> >
> >
> >
> >
> > ________________________________
> > From: "aeunson@" <aeunson@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Mon, September 27, 2010 3:09:52 PM
> > Subject: [DynoMotion] Re: Kflop / Kanalog
> >
> >  
> > Tom
> >
> > I have uploaded the mach motor tuning screenshot and the kmotion screen shot.
> >
> > The servo with linear actuator connected is 7mm / motor rev. the resolution is
>
> > 4096 per rev.
> >
> > If the velocity in mach is any more than 5000 I get a follower error.
> > At 5000 the movement of the table is quite slow but accurate.
> >
> > I also converted the mach figures as advised and ran them in kmotion where the
>
> > table seemed to move even slower.
> >
> > Please advise where you think I have gone wrong.
> >
> > Regards
> >
> > Art
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Art,
> > >
> > > Well you need to test the motion on the Step Response Screen for the same
> >type
> >
> >
> > > of motion you are attempting under Mach3 to see a respective response. 
> >For
> >
> > > example making a small/slow move from the Step Response screen may show small
> >
> > > following errors, but a large, faster, higher acceleration move under Mach3
> >may
> >
> > >
> > > have large following errors. 
> > >
> > > #1 What Velocity and Acceleration do you have Mach3 "Tuning" Set at?
> > >
> > > #2 What following error setting are you using?
> > >
> > > #3 Mach3 motions are not Jerk Limited so set the KMotion Jerk value 100X
> >the
> >
> > > acceleration value to see a similar motion.
> > >
> > > #4 convert the Mach3 Vel and Accel values to encoder counts (multiply by
> >counts
> >
> > >
> > > per mm)
> > >
> > > #5 plot a 90mm motion (Command, Position, Output)
> > >
> > > TK
> > >
> > >
> > >
> > >
> > >
> > >
> > > ________________________________
> > > From: "aeunson@" <aeunson@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Mon, September 27, 2010 1:05:52 PM
> > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > >
> > >  
> > >
> > > Tom,
> > >
> > > There is the message in the console "Following error 0 axis disabled
> > >
> > > I did tune them in the response screen before running Mach a few weeks ago.
> > >
> > > Regards
> > >
> > > Art
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Hi Art,
> > > >
> > > > Is there a message in the KMotion Console screen such as "Following
> > >error..."?
> > > >
> > > > Before attempting to use Mach3 you should tune the motors using the KMotion
> >
> > > >Step
> > > >
> > > > Response Screen and verify that you can make moves at your needed speeds
> >and
> >
> >
> > > > accuracies.ÃÆ'‚  What are your following errors for a 45mm move?
> > > >
> > > > Regards
> > > > TKÃÆ'‚ 
> > > >
> > > >
> > > >
> > > >
> > > > ________________________________
> > > > From: "aeunson@" <aeunson@>
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Mon, September 27, 2010 10:56:07 AM
> > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > >
> > > > ÃÆ'‚ 
> > > > Hi Tom
> > > >
> > > > I have finaly managed to get some time on the router.
> > > >
> > > > I have the x & y axis connected and the motor tuning all set up so that I
> >can
> >
> > >
> > > > accurately drive the table in Mach a set amount but if I try and drive it
> > > > anymore than 45mm at a time the table stops and I get this message:
> > >"dynamotion
> > >
> > > >
> > > > status all axes disabled"
> > > >
> > > > Any idea where I have gone wrong?
> > > >
> > > > Art
> > > >
> > > > --- In DynoMotion@yahoogroups.com, "aeunson@" <aeunson@> wrote:
> > > > >
> > > > >
> > > > > Hi Tom,
> > > > >
> > > > > I realised that just before going to bed last night and all is working
> > >well.
> > > > >
> > > > > However I did have to set steps per to 322.5 to get the DRO to read
> > >correctly
> > >
> > > >
> > > > >as it was reading low with the calculated value.
> > > > >
> > > > > I think I can now wait untill I fully complete the machine before I take
>
> > >this
> > >
> > > >
> > > > >any further when I will probably be back with lots of questions.
> > > > >
> > > > > Once I get it up and running I will post a video of it running but this
> > >will
> > >
> > > >be
> > > >
> > > > >a few weeks
> > > > >
> > > > > Thanks for yor help. You certainly support your product well.
> > > > >
> > > > > Best regards
> > > > >
> > > > > Art
> > > > >
> > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > >
> > > > > > Hi Art,
> > > > > >
> > > > > > No.ÃÆ'Æ'‚ÃÆ'‚  In KMotion everything is in
> >counts.ÃÆ'Æ'‚ÃÆ'‚  You would
> >
> > >change Mach3
> > >
> > > >"Motor
> > > >
> > > > > > Tuning".ÃÆ'Æ'‚ÃÆ'‚  Since you work in mm.ÃÆ'Æ'‚ÃÆ'‚ 
> >The number of counts/mm
> >
> > >would be:
> > > > > >
> > > > > > 4096*2/25.4=322.5196 counts/mm
> > > > > >
> > > > > > Regards
> > > > > > TK
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > ________________________________
> > > > > > From: "aeunson@" <aeunson@>
> > > > > > To: DynoMotion@yahoogroups.com
> > > > > > Sent: Fri, August 13, 2010 4:50:05 PM
> > > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > > >
> > > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > >
> > > > > > Hi Tom,
> > > > > >
> > > > > > This motor is conected to a ballscrew which is 2 turns to the inch.
> > > > > >
> > > > > > Do I change this in kmotion and re-write the c prog?
> > > > > >
> > > > > > Regards
> > > > > >
> > > > > > Art
> > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > >
> > > > > > > Hi Arthur,
> > > > > > >
> > > > > > > I don't see anything specifically wrong in the Mach3Mill.xml
> > > >file.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  It
> > > >
> > > > >seems
> > > > >
> > > > > > >to
> > > > > > >
> > > > > > > work for me.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Apparently
> >Mach3 has an issue where it
> >
> > >saves the
> > >
> > > >XML file
> > > >
> > > > >into
> > > > >
> > > > > > > whatever the current directory is when you exit which I think can
> > >result
> > >
> > > >in
> > > >
> > > > >
> > > > > > >lost
> > > > > > >
> > > > > > > changes and confusion.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Also
> >sometimes the units
> >
> > >inexplicably
> > >
> > > >change
> > > >
> > > > >from
> > > > >
> > > > > > >inches
> > > > > > >
> > > > > > > to mm mode, so check if somehow your base units somehow got switched
> >to
> >
> > >
> > > > mm.
> > > > > > >
> > > > > > > Maybe check what feed rate you specified?
> > > > > > >
> > > > > > > I see you set the resolution to 4096 which is the number of encoder
> > > > > > >counts/motor
> > > > > > >
> > > > > > > rev.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Usually mills have a
> >lead screw with about 5
> >
> > >turns/inch so
> > >
> > > >the
> > > >
> > > > >correct
> > > > >
> > > > > > > value would probably be more like 5x4096.
> > > > > > >
> > > > > > > Let us know how it goes and thanks for participating in the Group.
> > > > > > >
> > > > > > > TK
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > ________________________________
> > > > > > > From: "aeunson@" <aeunson@>
> > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > Sent: Fri, August 13, 2010 8:26:29 AM
> > > > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > > > >
> > > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > Hi Tom
> > > > > > >
> > > > > > > I have it working.
> > > > > > > Given a G0 x200 it will drive to 200. G0 x100 it will return to 100
> >and
> >
> > >
> > > >G0
> > > >
> > > > >x0
> > > > >
> > > > > > >it
> > > > > > >
> > > > > > > returns to zero.
> > > > > > > G1 & G2 are very very slow.
> > > > > > >
> > > > > > > But it is slow so I posted the xml file into the files section to see
> >
> > > >where
> > > >
> > > > >I
> > > > >
> > > > > > > have gone wrong.
> > > > > > >
> > > > > > > All the motors are the same but the x & y axis are different gearing
> >so
> >
> > >I
> > >
> > > >
> > > > > > >should
> > > > > > >
> > > > > > > be able to figure them out now.
> > > > > > >
> > > > > > > It going to be a couple of weeks before I get working on the full
> >table
> >
> > >
> > > >but
> > > >
> > > > >I
> > > > >
> > > > > > >am
> > > > > > >
> > > > > > > very pleased I can now drive a single motor with mach3 and prove it
> > >will
> > >
> > >
> > > > >work.
> > > > > > >
> > > > > > > Regards
> > > > > > >
> > > > > > > Arthur
> > > > > > >
> > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > >
> > > > > > > > Hi Arthur,
> > > > > > > >
> > > > > > > >
> >Strange.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > What about a G1 or
> >
> > >G2 move of for example
> > >
> > > >1 inch?
> > > > > > > >
> > > > > > > > What is your Mach3 Motor Tuning - Resolution, Vel, Accel, Units?
> > > > > > > >
> > > > > > > > Maybe you should send your Mach3 XML file.
> > > > > > > >
> > > > > > > > TK
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > ________________________________
> > > > > > > > From: "aeunson@" <aeunson@>
> > > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > > Sent: Thu, August 12, 2010 4:40:40 PM
> > > > > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > > > > >
> > > > > > > >
> >ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> >
> > > > > > > >
> > > > > > > > Hi Tom,
> > > > > > > >
> > > > > > > > Nearly there but not quite.
> > > > > > > >
> > > > > > > > When I Jog in mach it will continue to run in one direction untill
> >I
> >
> >
> > > >jog
> > > >
> > > > >in
> > > > >
> > > > > > >the
> > > > > > >
> > > > > > > >
> > > > > > > > opposite direction where it will still keep running.
> > > > > > > >
> > > > > > > > Here is the program I ended up with.
> > > > > > > >
> > > > > > > > Regards
> > > > > > > >
> > > > > > > > Arthur
> > > > > > > >
> > > > > > > > ch0->InputMode=ENCODER_MODE;
> > > > > > > > ch0->OutputMode=DAC_SERVO_MODE;
> > > > > > > > ch0->Vel=10000;
> > > > > > > > ch0->Accel=100000;
> > > > > > > > ch0->Jerk=1000000;
> > > > > > > > ch0->P=0.8000000119209;
> > > > > > > > ch0->I=9.999999747379e-005;
> > > > > > > > ch0->D=0;
> > > > > > > > ch0->FFAccel=0;
> > > > > > > > ch0->FFVel=0;
> > > > > > > > ch0->MaxI=200;
> > > > > > > > ch0->MaxErr=200;
> > > > > > > > ch0->MaxOutput=2047;
> > > > > > > > ch0->DeadBandGain=1;
> > > > > > > > ch0->DeadBandRange=0;
> > > > > > > > ch0->InputChan0=0;
> > > > > > > > ch0->InputChan1=1;
> > > > > > > > ch0->OutputChan0=0;
> > > > > > > > ch0->OutputChan1=1;
> > > > > > > > ch0->MasterAxis=-1;
> > > > > > > > ch0->LimitSwitchOptions=0x0;
> > > > > > > > ch0->InputGain0=-1;
> > > > > > > > ch0->InputGain1=1;
> > > > > > > > ch0->InputOffset0=0;
> > > > > > > > ch0->InputOffset1=0;
> > > > > > > > ch0->OutputGain=1;
> > > > > > > > ch0->OutputOffset=0;
> > > > > > > > ch0->SlaveGain=1;
> > > > > > > > ch0->BacklashMode=BACKLASH_OFF;
> > > > > > > > ch0->BacklashAmount=0;
> > > > > > > > ch0->BacklashRate=0;
> > > > > > > > ch0->invDistPerCycle=1;
> > > > > > > > ch0->Lead=0;
> > > > > > > > ch0->MaxFollowingError=4000;
> > > > > > > > ch0->StepperAmplitude=250;
> > > > > > > >
> > > > > > > > ch0->iir[0].B0=1;
> > > > > > > > ch0->iir[0].B1=0;
> > > > > > > > ch0->iir[0].B2=0;
> > > > > > > > ch0->iir[0].A1=0;
> > > > > > > > ch0->iir[0].A2=0;
> > > > > > > >
> > > > > > > > ch0->iir[1].B0=1;
> > > > > > > > ch0->iir[1].B1=0;
> > > > > > > > ch0->iir[1].B2=0;
> > > > > > > > ch0->iir[1].A1=0;
> > > > > > > > ch0->iir[1].A2=0;
> > > > > > > >
> > > > > > > > ch0->iir[2].B0=1;
> > > > > > > > ch0->iir[2].B1=0;
> > > > > > > > ch0->iir[2].B2=0;
> > > > > > > > ch0->iir[2].A1=0;
> > > > > > > > ch0->iir[2].A2=0;
> > > > > > > >
> > > > > > > > EnableAxisDest (0,ch0->Position);
> > > > > > > >
> > > > > > > > DefineCordSystem (0,-1,-1,-1);
> > > > > > > >
> > > > > > > > return 0;
> > > > > > > >
> > > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > >
> > > > > > > > > Hi Arthur,
> > > > > > > > >
> > > > > > > > > I didn't see a new file uploaded.
> > > > > > > > >
> > > > > > > > > Now that you have one axis working you are ready to try driving
> >it
> >
> >
> > > >from
> > > >
> > > > >
> > > > > > >
> >>Mach3.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> >
> > > > > > > >
> > > > > > > > >
> > > > > > > > > You need to make a C program that Mach can use to configure
> >KFlop.
> > > > > > > > >
> > > > > > > > > Follow the procedure described here (you are now at step 4)
> > > > > > > > >
> > > > > > > > > http://www.dynomotion.com/Help/Mach3Plugin/Mach3.htm
> > > > > > > > >
> > > > > > > > > Start with some Example Initialization program such as
> > > > > >
> >>InitStepDir3Axis.c.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> >
> > > > > > >
> > > > > > >
> > > > > > > > > Paste
> >yourÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ configuration
> >
> > >over the ch0
> > >
> > >
> >>settings.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > Remove
> >
> > > >
> > > > >all the
> > > > >
> > > > > > >settings
> > > > > > >
> > > > > > > >for
> > > > > > > >
> > > > > > > > >ch1
> > > > > > > > >
> > > > > > > > > and ch2.
> > > > > > > > >
> > > > > > > > > Change the
> >>DefineCoordSystemÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ call
> >l to just define
> >
> > >
> > > >one ch0 axis
> > > >
> > > > >in the
> > > > >
> > > > > > >system
> > > > > > >
> > > > > > > >as
> > > > > > > >
> > > > > > > > >X
> > > > > > > > >
> > > > > > > > >
> >by:ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > DefineCoordSystem(0,-1,-1,-1);
> > > > > > > > >
> > > > > > > > > Also change the Enable statement from:
> > > > > > > > >
> > > > > > > > > EnableAxisDest(0,0);
> > > > > > > > >
> > > > > > > > > to
> > > > > > > > >
> > > > > > > > > EnableAxisDest(0, ch0->Position);
> > > > > > > > >
> > > > > > > > > (this will enable the axis and servo at the current encoder
> > >position,
> > >
> > > >
> > > > > > > >otherwise
> > > > > > > >
> > > > > > > > >
> > > > > > > > > you might get a rapid motion to a destination of zero)
> > > > > > > > >
> > > > > > > > > Let us know how far you get.
> > > > > > > > >
> > > > > > > > > Regards
> > > > > > > > > TK
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > ________________________________
> > > > > > > > > From: "aeunson@" <aeunson@>
> > > > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > > > Sent: Thu, August 12, 2010 1:35:53 AM
> > > > > > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > > > > > >
> > > > > > > > >
> >ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> >
> > > > > > > > >
> > > > > > > > > Thanks Tom,
> > > > > > > > >
> > > > > > > > > Your support of your product is excellent and I now feel I am
> > >getting
> > >
> > > >
> > > > > > > > >somewhere.
> > > > > > > > >
> > > > > > > > > I increased the P gain upto 1.7 where I could just feel the motor
> >
> > > > >oscillate
> > > > >
> > > > > > >
> > > > > > > >so
> > > > > > > >
> > > > > > > >
> > > > > > > > > reduced it to 0.8.
> > > > > > > > >
> > > > > > > > > The I gain was set to 0.0001,any higher and it seemd to create an
> >
> > > > >overshoot
> > > > >
> > > > > > >
> > > > > > > >of
> > > > > > > >
> > > > > > > >
> > > > > > > > > the output.
> > > > > > > > >
> > > > > > > > > I also noticed to get a full revolution I had to increase the
> >move
> >
> > >to
> > >
> > > >
> > > > > > 4096.
> > > > > > > > >
> > > > > > > > > Again I have uploaded the results to the files section.
> > > > > > > > >
> > > > > > > > > Before I move everything out to the workshop and connect up the
> > > >machine
> > > >
> > > > >for
> > > > >
> > > > > > >
> > > > > > > > >real
> > > > > > > > >
> > > > > > > > > I would like to be able to understand getting Mach to work on the
> >
> > > > >single
> > > > >
> > > > > > >axis
> > > > > > >
> > > > > > > >I
> > > > > > > >
> > > > > > > > >
> > > > > > > > > have here in the office. I will also connect up home and limit
> > > > >switches.
> > > > > > > > >
> > > > > > > > > Regards
> > > > > > > > >
> > > > > > > > > Arthur
> > > > > > > > >
> > > > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > > >
> > > > > > > > > > Congratulations
> >>Arthur!ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > >
> > > >You now have a closed
> > > >
> > > > >servo
> > > > >
> > > > > >
> >>>loop.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > >
> > > > > > >
> > > > > > > > > >
> > > > > > > > > > Since moving 1000 counts results in 1/2 rev, then the
> >resolution
> >
> >
> > > >must
> > > >
> > > > >be
> > > > >
> > > > > >
> > > > > > > > >about
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > > 2000 counts/rev.
> > > > > > > > > >
> > > > > > > > > > Of course your motion is very slow and sloppy so the next step
> >is
> >
> > >
> > > >to
> > > >
> > > >
> > > > > > > >optimize
> > > > > > > >
> > > > > > > > >
> > > > > > > > > > the servo
> >>tuning.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > Please
> > >
> > > >see:
> > > > > > > > > >
> > > > > > > > > > http://tech.groups.yahoo.com/group/DynoMotion/message/507
> > > > > > > > > >
> > > > > > > > > > Notice in your case, the output (green plot and right side
> > > > > >
> >>>scale)ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ is
> >s
> > >
> > > > > > >
> > > > > > > > >clamping
> > > > > > > > >
> > > > > > > > > >at
> > > > > > > > > >
> > > > > > > > > > only 20 DAC counts
> >>>(~0.1V).ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > >  This is because of
> > >
> > > >
> > > > >our max allowed
> > > > >
> > > > > > >error
> > > > > > >
> > > > > > > >(200)
> > > > > > > >
> > > > > > > >
> > > > > > > > > >and
> > > > > > > > > >
> > > > > > > > > > very
> >>lowÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ P
> >P
> > > gain of 0.1.
> > > > > > > > > >
> > > > > > > > > > Regards
> > > > > > > > > > TK
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
Group: DynoMotion Message: 677 From: Tom Kerekes Date: 9/29/2010
Subject: Re: Kflop / Kanalog
Hi Art,
 
Its common to have mechanical issues like more binding moving one way rather than the other.
 
Your plots aren't very clear.  I can't tell if we are falling behind, or ahead, or oscillating.
 
Could you make some more that show what is going on more clearly.
 
For simplicity remove any feed forward.  Increase the max Integrator to 2047 and max error to 5000.
 
Increase the speed a bit so the problem is more pronounced.
 
Zoom in on the problem area (left click drag zoom in, right click to zoom out).
 
And plot Error rather than Command and Position.
 
Check that you don't have any IIR Filters (all set to flat gain 1).
 
Also verify that your system is capable of these speeds by disabling the axis and just issuing DAC commands from the console.  DACx=-600 should give you about the problem speed, larger negative values should be faster.
Encoder counts aren't being lost are they (moves back to where it started).
 
Sorry nothing obvious...
 
Regards
TK
 

Group: DynoMotion Message: 678 From: aeunson@btinternet.com Date: 9/29/2010
Subject: Re: Kflop / Kanalog
Hi Tom,

I may be asking it to go to fast.

For cutting probably max around 50mm/second. rapids a bit more.
Acceleration is probably more important.
How do you corelate between acceleration and velocity figures on the motion profile and actual speeds.

I changed the integrator to 2047 and the error to 5000 and the asymetry disapeared I tried increasing the velocity but it seemed to peak. How do you know if you are getting the best out of the system?

I uploaded a couple of screenshots to see if you can see what is happening.

Regards

Art

--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Art,
>
> Its common to have mechanical issues like more binding moving one way rather
> than the other.
>
> Your plots aren't very clear.  I can't tell if we are falling behind, or ahead,
> or oscillating.
>
> Could you make some more that show what is going on more clearly.
>
> For simplicity remove any feed forward.  Increase the max Integrator to 2047 and
> max error to 5000.
>
> Increase the speed a bit so the problem is more pronounced.
>
> Zoom in on the problem area (left click drag zoom in, right click to zoom out).
>
> And plot Error rather than Command and Position.
>
> Check that you don't have any IIR Filters (all set to flat gain 1).
>
> Also verify that your system is capable of these speeds by disabling the axis
> and just issuing DAC commands from the console.  DACx=-600 should give you about
> the problem speed, larger negative values should be faster.
>
> Encoder counts aren't being lost are they (moves back to where it started).
>
> Sorry nothing obvious...
>
> Regards
> TK
>
>
>
>
> ________________________________
> From: "aeunson@..." <aeunson@...>
> To: DynoMotion@yahoogroups.com
> Sent: Wed, September 29, 2010 1:35:55 PM
> Subject: [DynoMotion] Re: Kflop / Kanalog
>
>  
> Hi again Tom,
>
> The asymetrical movement is the same with 3 motors and 4 amps.
>
> Any idea what could cause this?
>
> Regards
>
> Art
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Art,
> >
> > Try increasing the max integrator from 200 to 2047 as it looks like we need
> > about 600 DAC counts to go at a speed of 100000 cnts/sec.
> >
> > But there is something asymmetrical happening as well.
> >
> > TK
> >
> >
> >
> >
> > ________________________________
> > From: "aeunson@" <aeunson@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Tue, September 28, 2010 1:21:19 PM
> > Subject: [DynoMotion] Re: Kflop / Kanalog
> >
> >  
> > Thanks Tom
> >
> > I see that now you have explained it.
> >
> > I have changed the paramaters as suggested and tried tuning the system.
> >
> > To get the command and position to track I have increased the p gain to 1.2,
> > this allows me to make a move upto 10000 before the output starts to distort.
> >
> > Above 10000 the output on the return starts to distort so I then increased the
>
> > feed forward V to 0.003. this let me increase the move to 90000 before the
> > output distorts.
> >
> > I then tried to increase the velocity but the output starts to distort again.
> >
> > The x axis is 800mm and the movement still seems quite slow.
> >
> > I am not sure if I am changing the correct parameters can you please advise.
> >
> > I have uploaded some screenshots
> >
> > Regards
> >
> > Art
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Art,
> > >
> > > Your Jerk setting is extremely low.
> > >
> > > With a Jerk limit of only 3000 cnts/sec^3 and a max acceleration of 175542
> > > cnts/sec^2 it would take:
> > >
> > > 175542/3000 = 58 seconds
> > >
> > > before the acceleration would ramp up to the maximum you are specifying. 
>
> > >Mach3
> > >
> > > has no Jerk limit, it applies the full acceleration you specify
> >instantly.  So
> >
> > >
> > > to see a similar motion that equates to what Mach3 is generating, set the
> >Jerk
> >
> >
> > > to a much bigger number like 2e7.  Then the acceleration will be fully
> >applied
> >
> > >
> > > in a few milliseconds:
> > >
> > > 175542/20000000 = 0.008 seconds.
> > >
> > >
> > > There is also a mistake with the velocity.  Mach3 specifies the max
> >velocity
> >
> > >per
> > >
> > > minute rather than per second so the velocity in counts/sec would be 48761
> > > rather than 2925700.
> > >
> > >
> > > After you make these two corrections the motion on the Step Response
> >screen
> >
> > >will
> > >
> > > be much faster and you will probably see larger following errors.  You
> >will
> >
> > >then
> > >
> > > be able to tune the system and determine the real limitations of your
> system.
> > >
> > > Regards
> > > TK
> > >
> > >
> > >
> > >
> > > ________________________________
> > > From: "aeunson@" <aeunson@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Mon, September 27, 2010 3:09:52 PM
> > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > >
> > >  
> > > Tom
> > >
> > > I have uploaded the mach motor tuning screenshot and the kmotion screen
> shot.
> > >
> > > The servo with linear actuator connected is 7mm / motor rev. the resolution
> >is
> >
> >
> > > 4096 per rev.
> > >
> > > If the velocity in mach is any more than 5000 I get a follower error.
> > > At 5000 the movement of the table is quite slow but accurate.
> > >
> > > I also converted the mach figures as advised and ran them in kmotion where
> >the
> >
> >
> > > table seemed to move even slower.
> > >
> > > Please advise where you think I have gone wrong.
> > >
> > > Regards
> > >
> > > Art
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Art,
> > > >
> > > > Well you need to test the motion on the Step Response Screen for the same
> > >type
> > >
> > >
> > > > of motion you are attempting under Mach3 to see a respective
> >response.ÃÆ'‚ 
> >
> > >For
> > >
> > > > example making a small/slow move from the Step Response screen may show
> >small
> >
> > >
> > > > following errors, but a large, faster, higher acceleration move under Mach3
> >
> > >may
> > >
> > > >
> > > > have large following errors.ÃÆ'‚ 
> > > >
> > > > #1 What Velocity and Acceleration do you have Mach3 "Tuning" Set at?
> > > >
> > > > #2 What following error setting are you using?
> > > >
> > > > #3 Mach3 motions are not Jerk LimitedÃÆ'‚ so set the KMotion Jerk value
> >100X
> >
> > >the
> > >
> > > > acceleration value to see a similar motion.
> > > >
> > > > #4 convert the Mach3 Vel and Accel values to encoder counts (multiply by
> > >counts
> > >
> > > >
> > > > per mm)
> > > >
> > > > #5 plot a 90mm motion (Command, Position, Output)
> > > >
> > > > TK
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > ________________________________
> > > > From: "aeunson@" <aeunson@>
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Mon, September 27, 2010 1:05:52 PM
> > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > >
> > > > ÃÆ'‚ 
> > > >
> > > > Tom,
> > > >
> > > > There is the message in the console "Following error 0 axis disabled
> > > >
> > > > I did tune them in the response screen before running Mach a few weeks
> ago.
> > > >
> > > > Regards
> > > >
> > > > Art
> > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > >
> > > > > Hi Art,
> > > > >
> > > > > Is there a message in the KMotion Console screen such as "Following
> > > >error..."?
> > > > >
> > > > > Before attempting to use Mach3 you should tune the motors using the
> >KMotion
> >
> > >
> > > > >Step
> > > > >
> > > > > Response Screen and verify that you can make moves at your needed speeds
>
> > >and
> > >
> > >
> > > > > accuracies.ÃÆ'Æ'‚ÃÆ'‚  What are your following errors for a 45mm
> >move?
> > > > >
> > > > > Regards
> > > > > TKÃÆ'Æ'‚ÃÆ'‚ 
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > ________________________________
> > > > > From: "aeunson@" <aeunson@>
> > > > > To: DynoMotion@yahoogroups.com
> > > > > Sent: Mon, September 27, 2010 10:56:07 AM
> > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > >
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > Hi Tom
> > > > >
> > > > > I have finaly managed to get some time on the router.
> > > > >
> > > > > I have the x & y axis connected and the motor tuning all set up so that I
> >
> > >can
> > >
> > > >
> > > > > accurately drive the table in Mach a set amount but if I try and drive it
> >
> > > > > anymore than 45mm at a time the table stops and I get this message:
> > > >"dynamotion
> > > >
> > > > >
> > > > > status all axes disabled"
> > > > >
> > > > > Any idea where I have gone wrong?
> > > > >
> > > > > Art
> > > > >
> > > > > --- In DynoMotion@yahoogroups.com, "aeunson@" <aeunson@> wrote:
> > > > > >
> > > > > >
> > > > > > Hi Tom,
> > > > > >
> > > > > > I realised that just before going to bed last night and all is working
>
> > > >well.
> > > > > >
> > > > > > However I did have to set steps per to 322.5 to get the DRO to read
> > > >correctly
> > > >
> > > > >
> > > > > >as it was reading low with the calculated value.
> > > > > >
> > > > > > I think I can now wait untill I fully complete the machine before I
> >take
> >
> >
> > > >this
> > > >
> > > > >
> > > > > >any further when I will probably be back with lots of questions.
> > > > > >
> > > > > > Once I get it up and running I will post a video of it running but this
> >
> > > >will
> > > >
> > > > >be
> > > > >
> > > > > >a few weeks
> > > > > >
> > > > > > Thanks for yor help. You certainly support your product well.
> > > > > >
> > > > > > Best regards
> > > > > >
> > > > > > Art
> > > > > >
> > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > >
> > > > > > > Hi Art,
> > > > > > >
> > > > > > > No.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  In KMotion everything
> >is in
> >
> > >counts.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  You would
> > >
> > > >change Mach3
> > > >
> > > > >"Motor
> > > > >
> > > > > > > Tuning".ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Since you work in
> >mm.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> >
> > >The number of counts/mm
> > >
> > > >would be:
> > > > > > >
> > > > > > > 4096*2/25.4=322.5196 counts/mm
> > > > > > >
> > > > > > > Regards
> > > > > > > TK
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > ________________________________
> > > > > > > From: "aeunson@" <aeunson@>
> > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > Sent: Fri, August 13, 2010 4:50:05 PM
> > > > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > > > >
> > > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > >
> > > > > > > Hi Tom,
> > > > > > >
> > > > > > > This motor is conected to a ballscrew which is 2 turns to the inch.
> > > > > > >
> > > > > > > Do I change this in kmotion and re-write the c prog?
> > > > > > >
> > > > > > > Regards
> > > > > > >
> > > > > > > Art
> > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > >
> > > > > > > > Hi Arthur,
> > > > > > > >
> > > > > > > > I don't see anything specifically wrong in the Mach3Mill.xml
> > > >
> >>file.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > It
> >
> > > > >
> > > > > >seems
> > > > > >
> > > > > > > >to
> > > > > > > >
> > > > > > > > work for
> >me.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > Apparently
> >
> > >Mach3 has an issue where it
> > >
> > > >saves the
> > > >
> > > > >XML file
> > > > >
> > > > > >into
> > > > > >
> > > > > > > > whatever the current directory is when you exit which I think can
> > > >result
> > > >
> > > > >in
> > > > >
> > > > > >
> > > > > > > >lost
> > > > > > > >
> > > > > > > > changes and
> >confusion.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > Also
> >
> > >sometimes the units
> > >
> > > >inexplicably
> > > >
> > > > >change
> > > > >
> > > > > >from
> > > > > >
> > > > > > > >inches
> > > > > > > >
> > > > > > > > to mm mode, so check if somehow your base units somehow got
> >switched
> >
> > >to
> > >
> > > >
> > > > > mm.
> > > > > > > >
> > > > > > > > Maybe check what feed rate you specified?
> > > > > > > >
> > > > > > > > I see you set the resolution to 4096 which is the number of encoder
> >
> > > > > > > >counts/motor
> > > > > > > >
> > > > > > > >
> >rev.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > Usually mills have a
> >
> > >lead screw with about 5
> > >
> > > >turns/inch so
> > > >
> > > > >the
> > > > >
> > > > > >correct
> > > > > >
> > > > > > > > value would probably be more like 5x4096.
> > > > > > > >
> > > > > > > > Let us know how it goes and thanks for participating in the Group.
> > > > > > > >
> > > > > > > > TK
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > ________________________________
> > > > > > > > From: "aeunson@" <aeunson@>
> > > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > > Sent: Fri, August 13, 2010 8:26:29 AM
> > > > > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > > > > >
> > > > > > > >
> >ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> >
> > > > > > > > Hi Tom
> > > > > > > >
> > > > > > > > I have it working.
> > > > > > > > Given a G0 x200 it will drive to 200. G0 x100 it will return to 100
> >
> > >and
> > >
> > > >
> > > > >G0
> > > > >
> > > > > >x0
> > > > > >
> > > > > > > >it
> > > > > > > >
> > > > > > > > returns to zero.
> > > > > > > > G1 & G2 are very very slow.
> > > > > > > >
> > > > > > > > But it is slow so I posted the xml file into the files section to
> >see
> >
> > >
> > > > >where
> > > > >
> > > > > >I
> > > > > >
> > > > > > > > have gone wrong.
> > > > > > > >
> > > > > > > > All the motors are the same but the x & y axis are different
> >gearing
> >
> > >so
> > >
> > > >I
> > > >
> > > > >
> > > > > > > >should
> > > > > > > >
> > > > > > > > be able to figure them out now.
> > > > > > > >
> > > > > > > > It going to be a couple of weeks before I get working on the full
> > >table
> > >
> > > >
> > > > >but
> > > > >
> > > > > >I
> > > > > >
> > > > > > > >am
> > > > > > > >
> > > > > > > > very pleased I can now drive a single motor with mach3 and prove it
> >
> > > >will
> > > >
> > > >
> > > > > >work.
> > > > > > > >
> > > > > > > > Regards
> > > > > > > >
> > > > > > > > Arthur
> > > > > > > >
> > > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > >
> > > > > > > > > Hi Arthur,
> > > > > > > > >
> > > > > > > > >
> >>Strange.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > What about a G1 or
> > >
> > > >G2 move of for example
> > > >
> > > > >1 inch?
> > > > > > > > >
> > > > > > > > > What is your Mach3 Motor Tuning - Resolution, Vel, Accel, Units?
> > > > > > > > >
> > > > > > > > > Maybe you should send your Mach3 XML file.
> > > > > > > > >
> > > > > > > > > TK
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > ________________________________
> > > > > > > > > From: "aeunson@" <aeunson@>
> > > > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > > > Sent: Thu, August 12, 2010 4:40:40 PM
> > > > > > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > > > > > >
> > > > > > > > >
> >>ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > >
> > > > > > > > >
> > > > > > > > > Hi Tom,
> > > > > > > > >
> > > > > > > > > Nearly there but not quite.
> > > > > > > > >
> > > > > > > > > When I Jog in mach it will continue to run in one direction
> >untill
> >
> > >I
> > >
> > >
> > > > >jog
> > > > >
> > > > > >in
> > > > > >
> > > > > > > >the
> > > > > > > >
> > > > > > > > >
> > > > > > > > > opposite direction where it will still keep running.
> > > > > > > > >
> > > > > > > > > Here is the program I ended up with.
> > > > > > > > >
> > > > > > > > > Regards
> > > > > > > > >
> > > > > > > > > Arthur
> > > > > > > > >
> > > > > > > > > ch0->InputMode=ENCODER_MODE;
> > > > > > > > > ch0->OutputMode=DAC_SERVO_MODE;
> > > > > > > > > ch0->Vel=10000;
> > > > > > > > > ch0->Accel=100000;
> > > > > > > > > ch0->Jerk=1000000;
> > > > > > > > > ch0->P=0.8000000119209;
> > > > > > > > > ch0->I=9.999999747379e-005;
> > > > > > > > > ch0->D=0;
> > > > > > > > > ch0->FFAccel=0;
> > > > > > > > > ch0->FFVel=0;
> > > > > > > > > ch0->MaxI=200;
> > > > > > > > > ch0->MaxErr=200;
> > > > > > > > > ch0->MaxOutput=2047;
> > > > > > > > > ch0->DeadBandGain=1;
> > > > > > > > > ch0->DeadBandRange=0;
> > > > > > > > > ch0->InputChan0=0;
> > > > > > > > > ch0->InputChan1=1;
> > > > > > > > > ch0->OutputChan0=0;
> > > > > > > > > ch0->OutputChan1=1;
> > > > > > > > > ch0->MasterAxis=-1;
> > > > > > > > > ch0->LimitSwitchOptions=0x0;
> > > > > > > > > ch0->InputGain0=-1;
> > > > > > > > > ch0->InputGain1=1;
> > > > > > > > > ch0->InputOffset0=0;
> > > > > > > > > ch0->InputOffset1=0;
> > > > > > > > > ch0->OutputGain=1;
> > > > > > > > > ch0->OutputOffset=0;
> > > > > > > > > ch0->SlaveGain=1;
> > > > > > > > > ch0->BacklashMode=BACKLASH_OFF;
> > > > > > > > > ch0->BacklashAmount=0;
> > > > > > > > > ch0->BacklashRate=0;
> > > > > > > > > ch0->invDistPerCycle=1;
> > > > > > > > > ch0->Lead=0;
> > > > > > > > > ch0->MaxFollowingError=4000;
> > > > > > > > > ch0->StepperAmplitude=250;
> > > > > > > > >
> > > > > > > > > ch0->iir[0].B0=1;
> > > > > > > > > ch0->iir[0].B1=0;
> > > > > > > > > ch0->iir[0].B2=0;
> > > > > > > > > ch0->iir[0].A1=0;
> > > > > > > > > ch0->iir[0].A2=0;
> > > > > > > > >
> > > > > > > > > ch0->iir[1].B0=1;
> > > > > > > > > ch0->iir[1].B1=0;
> > > > > > > > > ch0->iir[1].B2=0;
> > > > > > > > > ch0->iir[1].A1=0;
> > > > > > > > > ch0->iir[1].A2=0;
> > > > > > > > >
> > > > > > > > > ch0->iir[2].B0=1;
> > > > > > > > > ch0->iir[2].B1=0;
> > > > > > > > > ch0->iir[2].B2=0;
> > > > > > > > > ch0->iir[2].A1=0;
> > > > > > > > > ch0->iir[2].A2=0;
> > > > > > > > >
> > > > > > > > > EnableAxisDest (0,ch0->Position);
> > > > > > > > >
> > > > > > > > > DefineCordSystem (0,-1,-1,-1);
> > > > > > > > >
> > > > > > > > > return 0;
> > > > > > > > >
> > > > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > > >
> > > > > > > > > > Hi Arthur,
> > > > > > > > > >
> > > > > > > > > > I didn't see a new file uploaded.
> > > > > > > > > >
> > > > > > > > > > Now that you have one axis working you are ready to try driving
> >
> > >it
> > >
> > >
> > > > >from
> > > > >
> > > > > >
> > > > > > > >
> >>>Mach3.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > >
> > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > You need to make a C program that Mach can use to configure
> > >KFlop.
> > > > > > > > > >
> > > > > > > > > > Follow the procedure described here (you are now at step 4)
> > > > > > > > > >
> > > > > > > > > > http://www.dynomotion.com/Help/Mach3Plugin/Mach3.htm
> > > > > > > > > >
> > > > > > > > > > Start with some Example Initialization program such as
> > > > > > >
> >>>InitStepDir3Axis.c.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > >
> > > > > > > >
> > > > > > > >
> > > > > > > > > > Paste
> >>yourÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ configuration
> >n
> > >
> > > >over the ch0
> > > >
> > > >
> >>>settings.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > Remove
> > >
> > > > >
> > > > > >all the
> > > > > >
> > > > > > > >settings
> > > > > > > >
> > > > > > > > >for
> > > > > > > > >
> > > > > > > > > >ch1
> > > > > > > > > >
> > > > > > > > > > and ch2.
> > > > > > > > > >
> > > > > > > > > > Change the
> >>>DefineCoordSystemÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ call
> >l
> > >l to just define
> > >
> > > >
> > > > >one ch0 axis
> > > > >
> > > > > >in the
> > > > > >
> > > > > > > >system
> > > > > > > >
> > > > > > > > >as
> > > > > > > > >
> > > > > > > > > >X
> > > > > > > > > >
> > > > > > > > > >
> >>by:ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > DefineCoordSystem(0,-1,-1,-1);
> > > > > > > > > >
> > > > > > > > > > Also change the Enable statement from:
> > > > > > > > > >
> > > > > > > > > > EnableAxisDest(0,0);
> > > > > > > > > >
> > > > > > > > > > to
> > > > > > > > > >
> > > > > > > > > > EnableAxisDest(0, ch0->Position);
> > > > > > > > > >
> > > > > > > > > > (this will enable the axis and servo at the current encoder
> > > >position,
> > > >
> > > > >
> > > > > > > > >otherwise
> > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > you might get a rapid motion to a destination of zero)
> > > > > > > > > >
> > > > > > > > > > Let us know how far you get.
> > > > > > > > > >
> > > > > > > > > > Regards
> > > > > > > > > > TK
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > ________________________________
> > > > > > > > > > From: "aeunson@" <aeunson@>
> > > > > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > > > > Sent: Thu, August 12, 2010 1:35:53 AM
> > > > > > > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > > > > > > >
> > > > > > > > > >
> >>ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > >
> > > > > > > > > >
> > > > > > > > > > Thanks Tom,
> > > > > > > > > >
> > > > > > > > > > Your support of your product is excellent and I now feel I am
> > > >getting
> > > >
> > > > >
> > > > > > > > > >somewhere.
> > > > > > > > > >
> > > > > > > > > > I increased the P gain upto 1.7 where I could just feel the
> >motor
> >
> > >
> > > > > >oscillate
> > > > > >
> > > > > > > >
> > > > > > > > >so
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > > reduced it to 0.8.
> > > > > > > > > >
> > > > > > > > > > The I gain was set to 0.0001,any higher and it seemd to create
> >an
> >
> > >
> > > > > >overshoot
> > > > > >
> > > > > > > >
> > > > > > > > >of
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > > the output.
> > > > > > > > > >
> > > > > > > > > > I also noticed to get a full revolution I had to increase the
> > >move
> > >
> > > >to
> > > >
> > > > >
> > > > > > > 4096.
> > > > > > > > > >
> > > > > > > > > > Again I have uploaded the results to the files section.
> > > > > > > > > >
> > > > > > > > > > Before I move everything out to the workshop and connect up the
> >
> > > > >machine
> > > > >
> > > > > >for
> > > > > >
> > > > > > > >
> > > > > > > > > >real
> > > > > > > > > >
> > > > > > > > > > I would like to be able to understand getting Mach to work on
> >the
> >
> > >
> > > > > >single
> > > > > >
> > > > > > > >axis
> > > > > > > >
> > > > > > > > >I
> > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > have here in the office. I will also connect up home and limit
>
> > > > > >switches.
> > > > > > > > > >
> > > > > > > > > > Regards
> > > > > > > > > >
> > > > > > > > > > Arthur
> > > > > > > > > >
> > > > > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > > > >
> > > > > > > > > > > Congratulations
> >>>Arthur!ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > 
> > > >
> > > > >You now have a closed
> > > > >
> > > > > >servo
> > > > > >
> > > > > > >
> >>>>loop.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > 
> > > >
> > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > Since moving 1000 counts results in 1/2 rev, then the
> > >resolution
> > >
> > >
> > > > >must
> > > > >
> > > > > >be
> > > > > >
> > > > > > >
> > > > > > > > > >about
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > > 2000 counts/rev.
> > > > > > > > > > >
> > > > > > > > > > > Of course your motion is very slow and sloppy so the next
> >step
> >
> > >is
> > >
> > > >
> > > > >to
> > > > >
> > > > >
> > > > > > > > >optimize
> > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > > the servo
> >>>tuning.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > 
> > > > Please
> > > >
> > > > >see:
> > > > > > > > > > >
> > > > > > > > > > > http://tech.groups.yahoo.com/group/DynoMotion/message/507
> > > > > > > > > > >
> > > > > > > > > > > Notice in your case, the output (green plot and right side
> > > > > > >
> >>>>scale)ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ is
> >s
> > >s
> > > >
> > > > > > > >
> > > > > > > > > >clamping
> > > > > > > > > >
> > > > > > > > > > >at
> > > > > > > > > > >
> > > > > > > > > > > only 20 DAC counts
> >>>>(~0.1V).ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > 
> > > >  This is because of
> > > >
> > > > >
> > > > > >our max allowed
> > > > > >
> > > > > > > >error
> > > > > > > >
> > > > > > > > >(200)
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > > >and
> > > > > > > > > > >
> > > > > > > > > > > very
> >>>lowÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ P
> >P
> > >P
> > > > gain of 0.1.
> > > > > > > > > > >
> > > > > > > > > > > Regards
> > > > > > > > > > > TK
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
Group: DynoMotion Message: 679 From: Tom Kerekes Date: 9/29/2010
Subject: Re: Kflop / Kanalog
Hi Art,
 
Those plots look logical. 
 
The reason the velocity "peaked" is because for the acceleration specified and the distance of the move, the max velocity was not achieved before it was time to start decellerating.  To get higher velocity you would need to increase the acceleration or increase the distance.  There is a Velocity plot you can select.   Since the DAC Output is currently only reaching about 800 counts and the max is 2047 you can possibly get about 2.5X faster speed.
 
The servo P and I gains are quite low so the performance is not very good.  The error plot shows about 400 counts of following error since 1mm = 585 counts this is almost a mm.  Try increasing the gains to get less following error.  Note that if you increase too much the system will go violently unstable and oscilate, so be prepared to disable the servo.  Once the system becomes unstable back the gain back to about half so you have a good stability margin.
 
Regards
TK

Group: DynoMotion Message: 680 From: aeunson@btinternet.com Date: 10/1/2010
Subject: Re: Kflop / Kanalog
Hi Tom

I think I am begining to understand this a bit better and have had another try at tuning the servo.

Speed is now approx 0.25m/second which is fast enough for an 800m max travel.
I think I now have the error down to approx 0.1mm (.004") over 512mm.

Can you have a look over the screenshots I have uploaded and see what you think.

I did add a little forward error and low pass filter to bring the traces closer together and smooth them out.

Regards

Art

--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Art,
>
> Those plots look logical. 
>
> The reason the velocity "peaked" is because for the acceleration specified and
> the distance of the move, the max velocity was not achieved before it was time
> to start decellerating.  To get higher velocity you would need to increase the
> acceleration or increase the distance.  There is a Velocity plot you can
> select.   Since the DAC Output is currently only reaching about 800 counts and
> the max is 2047 you can possibly get about 2.5X faster speed.
>
> The servo P and I gains are quite low so the performance is not very good.  The
> error plot shows about 400 counts of following error since 1mm = 585 counts this
> is almost a mm.  Try increasing the gains to get less following error.  Note
> that if you increase too much the system will go violently unstable and
> oscilate, so be prepared to disable the servo.  Once the system becomes unstable
> back the gain back to about half so you have a good stability margin.
>
> Regards
> TK
>
>
>
>
> ________________________________
> From: "aeunson@..." <aeunson@...>
> To: DynoMotion@yahoogroups.com
> Sent: Wed, September 29, 2010 6:13:51 PM
> Subject: [DynoMotion] Re: Kflop / Kanalog
>
>  
> Hi Tom,
>
> I may be asking it to go to fast.
>
> For cutting probably max around 50mm/second. rapids a bit more.
> Acceleration is probably more important.
> How do you corelate between acceleration and velocity figures on the motion
> profile and actual speeds.
>
> I changed the integrator to 2047 and the error to 5000 and the asymetry
> disapeared I tried increasing the velocity but it seemed to peak. How do you
> know if you are getting the best out of the system?
>
> I uploaded a couple of screenshots to see if you can see what is happening.
>
> Regards
>
> Art
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Art,
> >
> > Its common to have mechanical issues like more binding moving one way rather
> > than the other.
> >
> > Your plots aren't very clear.  I can't tell if we are falling behind, or
> >ahead,
> >
> > or oscillating.
> >
> > Could you make some more that show what is going on more clearly.
> >
> > For simplicity remove any feed forward.  Increase the max Integrator to 2047
> >and
> >
> > max error to 5000.
> >
> > Increase the speed a bit so the problem is more pronounced.
> >
> > Zoom in on the problem area (left click drag zoom in, right click to zoom
> out).
> >
> > And plot Error rather than Command and Position.
> >
> > Check that you don't have any IIR Filters (all set to flat gain 1).
> >
> > Also verify that your system is capable of these speeds by disabling the axis
> > and just issuing DAC commands from the console.  DACx=-600 should give you
> >about
> >
> > the problem speed, larger negative values should be faster.
> >
> > Encoder counts aren't being lost are they (moves back to where it started).
> >
> > Sorry nothing obvious...
> >
> > Regards
> > TK
> >
> >
> >
> >
> > ________________________________
> > From: "aeunson@" <aeunson@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Wed, September 29, 2010 1:35:55 PM
> > Subject: [DynoMotion] Re: Kflop / Kanalog
> >
> >  
> > Hi again Tom,
> >
> > The asymetrical movement is the same with 3 motors and 4 amps.
> >
> > Any idea what could cause this?
> >
> > Regards
> >
> > Art
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Art,
> > >
> > > Try increasing the max integrator from 200 to 2047 as it looks like we need
> > > about 600 DAC counts to go at a speed of 100000 cnts/sec.
> > >
> > > But there is something asymmetrical happening as well.
> > >
> > > TK
> > >
> > >
> > >
> > >
> > > ________________________________
> > > From: "aeunson@" <aeunson@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Tue, September 28, 2010 1:21:19 PM
> > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > >
> > >  
> > > Thanks Tom
> > >
> > > I see that now you have explained it.
> > >
> > > I have changed the paramaters as suggested and tried tuning the system.
> > >
> > > To get the command and position to track I have increased the p gain to 1.2,
>
> > > this allows me to make a move upto 10000 before the output starts to
> distort.
> > >
> > > Above 10000 the output on the return starts to distort so I then increased
> >the
> >
> >
> > > feed forward V to 0.003. this let me increase the move to 90000 before the
> > > output distorts.
> > >
> > > I then tried to increase the velocity but the output starts to distort
> again.
> > >
> > > The x axis is 800mm and the movement still seems quite slow.
> > >
> > > I am not sure if I am changing the correct parameters can you please advise.
> > >
> > > I have uploaded some screenshots
> > >
> > > Regards
> > >
> > > Art
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Hi Art,
> > > >
> > > > Your Jerk setting is extremely low.
> > > >
> > > > With a Jerk limit of only 3000 cnts/sec^3 and a max acceleration of 175542
>
> > > > cnts/sec^2 it would take:
> > > >
> > > > 175542/3000 = 58 seconds
> > > >
> > > > before the acceleration would ramp up to the maximum you are
> >specifying.ÃÆ'‚ 
> >
> >
> > > >Mach3
> > > >
> > > > has no Jerk limit, it applies the full acceleration you specify
> > >instantly.ÃÆ'‚  So
> > >
> > > >
> > > > to see a similar motion that equates to what Mach3 is generating, set the
> > >Jerk
> > >
> > >
> > > > to a much bigger number like 2e7.ÃÆ'‚  Then the acceleration will be
> >fully
> >
> > >applied
> > >
> > > >
> > > > in a few milliseconds:
> > > >
> > > > 175542/20000000 = 0.008 seconds.
> > > >
> > > >
> > > > There is also a mistake with the velocity.ÃÆ'‚  Mach3 specifies the max
> >
> > >velocity
> > >
> > > >per
> > > >
> > > > minute rather than per second so the velocity in counts/sec would be 48761
>
> > > > rather than 2925700.
> > > >
> > > >
> > > > After you make these two corrections the motionÃÆ'‚ on the Step
> >Response
> >
> > >screen
> > >
> > > >will
> > > >
> > > > be much faster and you will probably see larger following errors.ÃÆ'‚ 
> >You
> >
> > >will
> > >
> > > >then
> > > >
> > > > be able to tune the system and determine the real limitations of your
> > system.
> > > >
> > > > Regards
> > > > TK
> > > >
> > > >
> > > >
> > > >
> > > > ________________________________
> > > > From: "aeunson@" <aeunson@>
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Mon, September 27, 2010 3:09:52 PM
> > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > >
> > > > ÃÆ'‚ 
> > > > Tom
> > > >
> > > > I have uploaded the mach motor tuning screenshot and the kmotion screen
> > shot.
> > > >
> > > > The servo with linear actuator connected is 7mm / motor rev. the resolution
> >
> > >is
> > >
> > >
> > > > 4096 per rev.
> > > >
> > > > If the velocity in mach is any more than 5000 I get a follower error.
> > > > At 5000 the movement of the table is quite slow but accurate.
> > > >
> > > > I also converted the mach figures as advised and ran them in kmotion where
>
> > >the
> > >
> > >
> > > > table seemed to move even slower.
> > > >
> > > > Please advise where you think I have gone wrong.
> > > >
> > > > Regards
> > > >
> > > > Art
> > > >
> > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > >
> > > > > Art,
> > > > >
> > > > > Well you need to test the motion on the Step Response Screen for the same
> >
> > > >type
> > > >
> > > >
> > > > > of motion you are attempting under Mach3 to see a respective
> > >response.ÃÆ'Æ'‚ÃÆ'‚ 
> > >
> > > >For
> > > >
> > > > > example making a small/slow move from the Step Response screen may show
> > >small
> > >
> > > >
> > > > > following errors, but a large, faster, higher acceleration move under
> >Mach3
> >
> > >
> > > >may
> > > >
> > > > >
> > > > > have large following errors.ÃÆ'Æ'‚ÃÆ'‚ 
> > > > >
> > > > > #1 What Velocity and Acceleration do you have Mach3 "Tuning" Set at?
> > > > >
> > > > > #2 What following error setting are you using?
> > > > >
> > > > > #3 Mach3 motions are not Jerk LimitedÃÆ'Æ'‚ÃÆ'‚ so set the
> >KMotion Jerk value
> >
> > >100X
> > >
> > > >the
> > > >
> > > > > acceleration value to see a similar motion.
> > > > >
> > > > > #4 convert the Mach3 Vel and Accel values to encoder counts (multiply by
>
> > > >counts
> > > >
> > > > >
> > > > > per mm)
> > > > >
> > > > > #5 plot a 90mm motion (Command, Position, Output)
> > > > >
> > > > > TK
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > ________________________________
> > > > > From: "aeunson@" <aeunson@>
> > > > > To: DynoMotion@yahoogroups.com
> > > > > Sent: Mon, September 27, 2010 1:05:52 PM
> > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > >
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > >
> > > > > Tom,
> > > > >
> > > > > There is the message in the console "Following error 0 axis disabled
> > > > >
> > > > > I did tune them in the response screen before running Mach a few weeks
> > ago.
> > > > >
> > > > > Regards
> > > > >
> > > > > Art
> > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > >
> > > > > > Hi Art,
> > > > > >
> > > > > > Is there a message in the KMotion Console screen such as "Following
> > > > >error..."?
> > > > > >
> > > > > > Before attempting to use Mach3 you should tune the motors using the
> > >KMotion
> > >
> > > >
> > > > > >Step
> > > > > >
> > > > > > Response Screen and verify that you can make moves at your needed
> >speeds
> >
> >
> > > >and
> > > >
> > > >
> > > > > > accuracies.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  What are your
> >following errors for a 45mm
> >
> > >move?
> > > > > >
> > > > > > Regards
> > > > > > TKÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > ________________________________
> > > > > > From: "aeunson@" <aeunson@>
> > > > > > To: DynoMotion@yahoogroups.com
> > > > > > Sent: Mon, September 27, 2010 10:56:07 AM
> > > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > > >
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > Hi Tom
> > > > > >
> > > > > > I have finaly managed to get some time on the router.
> > > > > >
> > > > > > I have the x & y axis connected and the motor tuning all set up so that
> >I
> >
> > >
> > > >can
> > > >
> > > > >
> > > > > > accurately drive the table in Mach a set amount but if I try and drive
> >it
> >
> > >
> > > > > > anymore than 45mm at a time the table stops and I get this message:
> > > > >"dynamotion
> > > > >
> > > > > >
> > > > > > status all axes disabled"
> > > > > >
> > > > > > Any idea where I have gone wrong?
> > > > > >
> > > > > > Art
> > > > > >
> > > > > > --- In DynoMotion@yahoogroups.com, "aeunson@" <aeunson@> wrote:
> > > > > > >
> > > > > > >
> > > > > > > Hi Tom,
> > > > > > >
> > > > > > > I realised that just before going to bed last night and all is
> >working
> >
> >
> > > > >well.
> > > > > > >
> > > > > > > However I did have to set steps per to 322.5 to get the DRO to read
> > > > >correctly
> > > > >
> > > > > >
> > > > > > >as it was reading low with the calculated value.
> > > > > > >
> > > > > > > I think I can now wait untill I fully complete the machine before I
> > >take
> > >
> > >
> > > > >this
> > > > >
> > > > > >
> > > > > > >any further when I will probably be back with lots of questions.
> > > > > > >
> > > > > > > Once I get it up and running I will post a video of it running but
> >this
> >
> > >
> > > > >will
> > > > >
> > > > > >be
> > > > > >
> > > > > > >a few weeks
> > > > > > >
> > > > > > > Thanks for yor help. You certainly support your product well.
> > > > > > >
> > > > > > > Best regards
> > > > > > >
> > > > > > > Art
> > > > > > >
> > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > >
> > > > > > > > Hi Art,
> > > > > > > >
> > > > > > > >
> >No.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > In KMotion everything
> >
> > >is in
> > >
> > >
> >>counts.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > You would
> >
> > > >
> > > > >change Mach3
> > > > >
> > > > > >"Motor
> > > > > >
> > > > > > > >
> >Tuning".ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > Since you work in
> >
> >>mm.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> >
> > >
> > > >The number of counts/mm
> > > >
> > > > >would be:
> > > > > > > >
> > > > > > > > 4096*2/25.4=322.5196 counts/mm
> > > > > > > >
> > > > > > > > Regards
> > > > > > > > TK
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > ________________________________
> > > > > > > > From: "aeunson@" <aeunson@>
> > > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > > Sent: Fri, August 13, 2010 4:50:05 PM
> > > > > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > > > > >
> > > > > > > >
> >ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> >
> > > > > > > >
> > > > > > > > Hi Tom,
> > > > > > > >
> > > > > > > > This motor is conected to a ballscrew which is 2 turns to the
> inch.
> > > > > > > >
> > > > > > > > Do I change this in kmotion and re-write the c prog?
> > > > > > > >
> > > > > > > > Regards
> > > > > > > >
> > > > > > > > Art
> > > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > >
> > > > > > > > > Hi Arthur,
> > > > > > > > >
> > > > > > > > > I don't see anything specifically wrong in the Mach3Mill.xml
> > > > >
> >>>file.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > It
> > >
> > > > > >
> > > > > > >seems
> > > > > > >
> > > > > > > > >to
> > > > > > > > >
> > > > > > > > > work for
> >>me.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > Apparently
> > >
> > > >Mach3 has an issue where it
> > > >
> > > > >saves the
> > > > >
> > > > > >XML file
> > > > > >
> > > > > > >into
> > > > > > >
> > > > > > > > > whatever the current directory is when you exit which I think can
> >
> > > > >result
> > > > >
> > > > > >in
> > > > > >
> > > > > > >
> > > > > > > > >lost
> > > > > > > > >
> > > > > > > > > changes and
> >>confusion.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > Also
> > >
> > > >sometimes the units
> > > >
> > > > >inexplicably
> > > > >
> > > > > >change
> > > > > >
> > > > > > >from
> > > > > > >
> > > > > > > > >inches
> > > > > > > > >
> > > > > > > > > to mm mode, so check if somehow your base units somehow got
> > >switched
> > >
> > > >to
> > > >
> > > > >
> > > > > > mm.
> > > > > > > > >
> > > > > > > > > Maybe check what feed rate you specified?
> > > > > > > > >
> > > > > > > > > I see you set the resolution to 4096 which is the number of
> >encoder
> >
> > >
> > > > > > > > >counts/motor
> > > > > > > > >
> > > > > > > > >
> >>rev.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > Usually mills have a
> > >
> > > >lead screw with about 5
> > > >
> > > > >turns/inch so
> > > > >
> > > > > >the
> > > > > >
> > > > > > >correct
> > > > > > >
> > > > > > > > > value would probably be more like 5x4096.
> > > > > > > > >
> > > > > > > > > Let us know how it goes and thanks for participating in the
> >Group.
> > > > > > > > >
> > > > > > > > > TK
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > ________________________________
> > > > > > > > > From: "aeunson@" <aeunson@>
> > > > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > > > Sent: Fri, August 13, 2010 8:26:29 AM
> > > > > > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > > > > > >
> > > > > > > > >
> >>ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > >
> > > > > > > > > Hi Tom
> > > > > > > > >
> > > > > > > > > I have it working.
> > > > > > > > > Given a G0 x200 it will drive to 200. G0 x100 it will return to
> >100
> >
> > >
> > > >and
> > > >
> > > > >
> > > > > >G0
> > > > > >
> > > > > > >x0
> > > > > > >
> > > > > > > > >it
> > > > > > > > >
> > > > > > > > > returns to zero.
> > > > > > > > > G1 & G2 are very very slow.
> > > > > > > > >
> > > > > > > > > But it is slow so I posted the xml file into the files section to
> >
> > >see
> > >
> > > >
> > > > > >where
> > > > > >
> > > > > > >I
> > > > > > >
> > > > > > > > > have gone wrong.
> > > > > > > > >
> > > > > > > > > All the motors are the same but the x & y axis are different
> > >gearing
> > >
> > > >so
> > > >
> > > > >I
> > > > >
> > > > > >
> > > > > > > > >should
> > > > > > > > >
> > > > > > > > > be able to figure them out now.
> > > > > > > > >
> > > > > > > > > It going to be a couple of weeks before I get working on the full
> >
> > > >table
> > > >
> > > > >
> > > > > >but
> > > > > >
> > > > > > >I
> > > > > > >
> > > > > > > > >am
> > > > > > > > >
> > > > > > > > > very pleased I can now drive a single motor with mach3 and prove
> >it
> >
> > >
> > > > >will
> > > > >
> > > > >
> > > > > > >work.
> > > > > > > > >
> > > > > > > > > Regards
> > > > > > > > >
> > > > > > > > > Arthur
> > > > > > > > >
> > > > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > > >
> > > > > > > > > > Hi Arthur,
> > > > > > > > > >
> > > > > > > > > >
> >>>Strange.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > 
> > > > What about a G1 or
> > > >
> > > > >G2 move of for example
> > > > >
> > > > > >1 inch?
> > > > > > > > > >
> > > > > > > > > > What is your Mach3 Motor Tuning - Resolution, Vel, Accel,
> >Units?
> > > > > > > > > >
> > > > > > > > > > Maybe you should send your Mach3 XML file.
> > > > > > > > > >
> > > > > > > > > > TK
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > ________________________________
> > > > > > > > > > From: "aeunson@" <aeunson@>
> > > > > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > > > > Sent: Thu, August 12, 2010 4:40:40 PM
> > > > > > > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > > > > > > >
> > > > > > > > > >
> >>>ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > 
> > > >
> > > > > > > > > >
> > > > > > > > > > Hi Tom,
> > > > > > > > > >
> > > > > > > > > > Nearly there but not quite.
> > > > > > > > > >
> > > > > > > > > > When I Jog in mach it will continue to run in one direction
> > >untill
> > >
> > > >I
> > > >
> > > >
> > > > > >jog
> > > > > >
> > > > > > >in
> > > > > > >
> > > > > > > > >the
> > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > opposite direction where it will still keep running.
> > > > > > > > > >
> > > > > > > > > > Here is the program I ended up with.
> > > > > > > > > >
> > > > > > > > > > Regards
> > > > > > > > > >
> > > > > > > > > > Arthur
> > > > > > > > > >
> > > > > > > > > > ch0->InputMode=ENCODER_MODE;
> > > > > > > > > > ch0->OutputMode=DAC_SERVO_MODE;
> > > > > > > > > > ch0->Vel=10000;
> > > > > > > > > > ch0->Accel=100000;
> > > > > > > > > > ch0->Jerk=1000000;
> > > > > > > > > > ch0->P=0.8000000119209;
> > > > > > > > > > ch0->I=9.999999747379e-005;
> > > > > > > > > > ch0->D=0;
> > > > > > > > > > ch0->FFAccel=0;
> > > > > > > > > > ch0->FFVel=0;
> > > > > > > > > > ch0->MaxI=200;
> > > > > > > > > > ch0->MaxErr=200;
> > > > > > > > > > ch0->MaxOutput=2047;
> > > > > > > > > > ch0->DeadBandGain=1;
> > > > > > > > > > ch0->DeadBandRange=0;
> > > > > > > > > > ch0->InputChan0=0;
> > > > > > > > > > ch0->InputChan1=1;
> > > > > > > > > > ch0->OutputChan0=0;
> > > > > > > > > > ch0->OutputChan1=1;
> > > > > > > > > > ch0->MasterAxis=-1;
> > > > > > > > > > ch0->LimitSwitchOptions=0x0;
> > > > > > > > > > ch0->InputGain0=-1;
> > > > > > > > > > ch0->InputGain1=1;
> > > > > > > > > > ch0->InputOffset0=0;
> > > > > > > > > > ch0->InputOffset1=0;
> > > > > > > > > > ch0->OutputGain=1;
> > > > > > > > > > ch0->OutputOffset=0;
> > > > > > > > > > ch0->SlaveGain=1;
> > > > > > > > > > ch0->BacklashMode=BACKLASH_OFF;
> > > > > > > > > > ch0->BacklashAmount=0;
> > > > > > > > > > ch0->BacklashRate=0;
> > > > > > > > > > ch0->invDistPerCycle=1;
> > > > > > > > > > ch0->Lead=0;
> > > > > > > > > > ch0->MaxFollowingError=4000;
> > > > > > > > > > ch0->StepperAmplitude=250;
> > > > > > > > > >
> > > > > > > > > > ch0->iir[0].B0=1;
> > > > > > > > > > ch0->iir[0].B1=0;
> > > > > > > > > > ch0->iir[0].B2=0;
> > > > > > > > > > ch0->iir[0].A1=0;
> > > > > > > > > > ch0->iir[0].A2=0;
> > > > > > > > > >
> > > > > > > > > > ch0->iir[1].B0=1;
> > > > > > > > > > ch0->iir[1].B1=0;
> > > > > > > > > > ch0->iir[1].B2=0;
> > > > > > > > > > ch0->iir[1].A1=0;
> > > > > > > > > > ch0->iir[1].A2=0;
> > > > > > > > > >
> > > > > > > > > > ch0->iir[2].B0=1;
> > > > > > > > > > ch0->iir[2].B1=0;
> > > > > > > > > > ch0->iir[2].B2=0;
> > > > > > > > > > ch0->iir[2].A1=0;
> > > > > > > > > > ch0->iir[2].A2=0;
> > > > > > > > > >
> > > > > > > > > > EnableAxisDest (0,ch0->Position);
> > > > > > > > > >
> > > > > > > > > > DefineCordSystem (0,-1,-1,-1);
> > > > > > > > > >
> > > > > > > > > > return 0;
> > > > > > > > > >
> > > > > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > > > >
> > > > > > > > > > > Hi Arthur,
> > > > > > > > > > >
> > > > > > > > > > > I didn't see a new file uploaded.
> > > > > > > > > > >
> > > > > > > > > > > Now that you have one axis working you are ready to try
> >driving
> >
> > >
> > > >it
> > > >
> > > >
> > > > > >from
> > > > > >
> > > > > > >
> > > > > > > > >
> >>>>Mach3.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > 
> > > >
> > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > You need to make a C program that Mach can use to configure
> > > >KFlop.
> > > > > > > > > > >
> > > > > > > > > > > Follow the procedure described here (you are now at step 4)
> > > > > > > > > > >
> > > > > > > > > > > http://www.dynomotion.com/Help/Mach3Plugin/Mach3.htm
> > > > > > > > > > >
> > > > > > > > > > > Start with some Example Initialization program such as
> > > > > > > >
> >>>>InitStepDir3Axis.c.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > 
> > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > > > Paste
> >>>yourÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ configuration
> >n
> > >n
> > > >
> > > > >over the ch0
> > > > >
> > > > >
> >>>>settings.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > 
> > > > Remove
> > > >
> > > > > >
> > > > > > >all the
> > > > > > >
> > > > > > > > >settings
> > > > > > > > >
> > > > > > > > > >for
> > > > > > > > > >
> > > > > > > > > > >ch1
> > > > > > > > > > >
> > > > > > > > > > > and ch2.
> > > > > > > > > > >
> > > > > > > > > > > Change the
> >>>>DefineCoordSystemÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ call
> >l
> > >l
> > > >l to just define
> > > >
> > > > >
> > > > > >one ch0 axis
> > > > > >
> > > > > > >in the
> > > > > > >
> > > > > > > > >system
> > > > > > > > >
> > > > > > > > > >as
> > > > > > > > > >
> > > > > > > > > > >X
> > > > > > > > > > >
> > > > > > > > > > >
> >>>by:ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > 
> > > >
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > DefineCoordSystem(0,-1,-1,-1);
> > > > > > > > > > >
> > > > > > > > > > > Also change the Enable statement from:
> > > > > > > > > > >
> > > > > > > > > > > EnableAxisDest(0,0);
> > > > > > > > > > >
> > > > > > > > > > > to
> > > > > > > > > > >
> > > > > > > > > > > EnableAxisDest(0, ch0->Position);
> > > > > > > > > > >
> > > > > > > > > > > (this will enable the axis and servo at the current encoder
> > > > >position,
> > > > >
> > > > > >
> > > > > > > > > >otherwise
> > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > you might get a rapid motion to a destination of zero)
> > > > > > > > > > >
> > > > > > > > > > > Let us know how far you get.
> > > > > > > > > > >
> > > > > > > > > > > Regards
> > > > > > > > > > > TK
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > ________________________________
> > > > > > > > > > > From: "aeunson@" <aeunson@>
> > > > > > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > > > > > Sent: Thu, August 12, 2010 1:35:53 AM
> > > > > > > > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > > > > > > > >
> > > > > > > > > > >
> >>>ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > 
> > > >
> > > > > > > > > > >
> > > > > > > > > > > Thanks Tom,
> > > > > > > > > > >
> > > > > > > > > > > Your support of your product is excellent and I now feel I am
> >
> > > > >getting
> > > > >
> > > > > >
> > > > > > > > > > >somewhere.
> > > > > > > > > > >
> > > > > > > > > > > I increased the P gain upto 1.7 where I could just feel the
> > >motor
> > >
> > > >
> > > > > > >oscillate
> > > > > > >
> > > > > > > > >
> > > > > > > > > >so
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > > reduced it to 0.8.
> > > > > > > > > > >
> > > > > > > > > > > The I gain was set to 0.0001,any higher and it seemd to
> >create
> >
> > >an
> > >
> > > >
> > > > > > >overshoot
> > > > > > >
> > > > > > > > >
> > > > > > > > > >of
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > > the output.
> > > > > > > > > > >
> > > > > > > > > > > I also noticed to get a full revolution I had to increase the
> >
> > > >move
> > > >
> > > > >to
> > > > >
> > > > > >
> > > > > > > > 4096.
> > > > > > > > > > >
> > > > > > > > > > > Again I have uploaded the results to the files section.
> > > > > > > > > > >
> > > > > > > > > > > Before I move everything out to the workshop and connect up
> >the
> >
> > >
> > > > > >machine
> > > > > >
> > > > > > >for
> > > > > > >
> > > > > > > > >
> > > > > > > > > > >real
> > > > > > > > > > >
> > > > > > > > > > > I would like to be able to understand getting Mach to work on
> >
> > >the
> > >
> > > >
> > > > > > >single
> > > > > > >
> > > > > > > > >axis
> > > > > > > > >
> > > > > > > > > >I
> > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > have here in the office. I will also connect up home and
> >limit
> >
> >
> > > > > > >switches.
> > > > > > > > > > >
> > > > > > > > > > > Regards
> > > > > > > > > > >
> > > > > > > > > > > Arthur
> > > > > > > > > > >
> > > > > > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > > > > >
> > > > > > > > > > > > Congratulations
> >>>>Arthur!ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚Ã
> ‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > 
> > > > 
> > > > >
> > > > > >You now have a closed
> > > > > >
> > > > > > >servo
> > > > > > >
> > > > > > > >
> >>>>>loop.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚Â
> ¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > 
> > > > 
> > > > >
> > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > > Since moving 1000 counts results in 1/2 rev, then the
> > > >resolution
> > > >
> > > >
> > > > > >must
> > > > > >
> > > > > > >be
> > > > > > >
> > > > > > > >
> > > > > > > > > > >about
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > > 2000 counts/rev.
> > > > > > > > > > > >
> > > > > > > > > > > > Of course your motion is very slow and sloppy so the next
> > >step
> > >
> > > >is
> > > >
> > > > >
> > > > > >to
> > > > > >
> > > > > >
> > > > > > > > > >optimize
> > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > > the servo
> >>>>tuning.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚Ã
> ‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > 
> > > > 
> > > > > Please
> > > > >
> > > > > >see:
> > > > > > > > > > > >
> > > > > > > > > > > > http://tech.groups.yahoo.com/group/DynoMotion/message/507
> > > > > > > > > > > >
> > > > > > > > > > > > Notice in your case, the output (green plot and right side
>
> > > > > > > >
> >>>>>scale)ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚Ã
> ‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ is
> >s
> > >s
> > > >s
> > > > >
> > > > > > > > >
> > > > > > > > > > >clamping
> > > > > > > > > > >
> > > > > > > > > > > >at
> > > > > > > > > > > >
> > > > > > > > > > > > only 20 DAC counts
> >>>>>(~0.1V).ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚Ã
> ‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > 
> > > > 
> > > > >ÃÆ'‚  This is because of
> > > > >
> > > > > >
> > > > > > >our max allowed
> > > > > > >
> > > > > > > > >error
> > > > > > > > >
> > > > > > > > > >(200)
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > > >and
> > > > > > > > > > > >
> > > > > > > > > > > > very
> >>>>lowÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚ÂÂ
> ¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ P
> >P
> > >P
> > > >P
> > > > > gain of 0.1.
> > > > > > > > > > > >
> > > > > > > > > > > > Regards
> > > > > > > > > > > > TK
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
Group: DynoMotion Message: 683 From: Tom Kerekes Date: 10/2/2010
Subject: Re: Kflop / Kanalog
Hi Art,
 
That looks very good.  Except the Acceleration limit is basically set to infinity so the max acceleration is limited by the Jerk (and the Max Velocity).  It would take 500 seconds at the specified Jerk to reach the max acceleration, but after a fraction of a second of ramping the acceleration the max velocity would be exceeded.  This is fine for generating nice smooth motion, but since Mach3 has no Jerk control that value of acceleration won't work.  As you change the Acceleration keep the numeric value of the Jerk about 100X larger than the numeric value of the Acceleration.  This will apply the full Acceleration in ~ 0.01 seconds which is similar to what happens in Mach3.
 
TK 

Group: DynoMotion Message: 686 From: aeunson@btinternet.com Date: 10/2/2010
Subject: Re: Kflop / Kanalog
Thanks Tom,

Do I reduce the acceleration or increase the jerk?

regards

Art

--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Art,
>
> That looks very good.  Except the Acceleration limit is basically set to
> infinity so the max acceleration is limited by the Jerk (and the Max Velocity). 
> It would take 500 seconds at the specified Jerk to reach the max acceleration,
> but after a fraction of a second of ramping the acceleration the max velocity
> would be exceeded.  This is fine for generating nice smooth motion, but since
> Mach3 has no Jerk control that value of acceleration won't work.  As you change
> the Acceleration keep the numeric value of the Jerk about 100X larger than the
> numeric value of the Acceleration.  This will apply the full Acceleration in ~
> 0.01 seconds which is similar to what happens in Mach3.
>
> TK 
>
>
>
>
> ________________________________
> From: "aeunson@..." <aeunson@...>
> To: DynoMotion@yahoogroups.com
> Sent: Fri, October 1, 2010 4:27:39 PM
> Subject: [DynoMotion] Re: Kflop / Kanalog
>
>  
> Hi Tom
>
> I think I am begining to understand this a bit better and have had another try
> at tuning the servo.
>
> Speed is now approx 0.25m/second which is fast enough for an 800m max travel.
> I think I now have the error down to approx 0.1mm (.004") over 512mm.
>
> Can you have a look over the screenshots I have uploaded and see what you think.
>
> I did add a little forward error and low pass filter to bring the traces closer
> together and smooth them out.
>
> Regards
>
> Art
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Art,
> >
> > Those plots look logical. 
> >
> > The reason the velocity "peaked" is because for the acceleration specified and
> >
> > the distance of the move, the max velocity was not achieved before it was time
>
> > to start decellerating.  To get higher velocity you would need to increase the
> >
> > acceleration or increase the distance.  There is a Velocity plot you can
> > select.   Since the DAC Output is currently only reaching about 800 counts
> >and
> >
> > the max is 2047 you can possibly get about 2.5X faster speed.
> >
> > The servo P and I gains are quite low so the performance is not very
> >good.  The
> >
> > error plot shows about 400 counts of following error since 1mm = 585 counts
> >this
> >
> > is almost a mm.  Try increasing the gains to get less following error.  Note
>
> > that if you increase too much the system will go violently unstable and
> > oscilate, so be prepared to disable the servo.  Once the system becomes
> >unstable
> >
> > back the gain back to about half so you have a good stability margin.
> >
> > Regards
> > TK
> >
> >
> >
> >
> > ________________________________
> > From: "aeunson@" <aeunson@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Wed, September 29, 2010 6:13:51 PM
> > Subject: [DynoMotion] Re: Kflop / Kanalog
> >
> >  
> > Hi Tom,
> >
> > I may be asking it to go to fast.
> >
> > For cutting probably max around 50mm/second. rapids a bit more.
> > Acceleration is probably more important.
> > How do you corelate between acceleration and velocity figures on the motion
> > profile and actual speeds.
> >
> > I changed the integrator to 2047 and the error to 5000 and the asymetry
> > disapeared I tried increasing the velocity but it seemed to peak. How do you
> > know if you are getting the best out of the system?
> >
> > I uploaded a couple of screenshots to see if you can see what is happening.
> >
> > Regards
> >
> > Art
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Art,
> > >
> > > Its common to have mechanical issues like more binding moving one way rather
>
> > > than the other.
> > >
> > > Your plots aren't very clear.  I can't tell if we are falling behind, or
> > >ahead,
> > >
> > > or oscillating.
> > >
> > > Could you make some more that show what is going on more clearly.
> > >
> > > For simplicity remove any feed forward.  Increase the max Integrator to
> >2047
> >
> > >and
> > >
> > > max error to 5000.
> > >
> > > Increase the speed a bit so the problem is more pronounced.
> > >
> > > Zoom in on the problem area (left click drag zoom in, right click to zoom
> > out).
> > >
> > > And plot Error rather than Command and Position.
> > >
> > > Check that you don't have any IIR Filters (all set to flat gain 1).
> > >
> > > Also verify that your system is capable of these speeds by disabling the axis
> >
> > > and just issuing DAC commands from the console.  DACx=-600 should give you
> >
> > >about
> > >
> > > the problem speed, larger negative values should be faster.
> > >
> > > Encoder counts aren't being lost are they (moves back to where it started).
> > >
> > > Sorry nothing obvious...
> > >
> > > Regards
> > > TK
> > >
> > >
> > >
> > >
> > > ________________________________
> > > From: "aeunson@" <aeunson@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Wed, September 29, 2010 1:35:55 PM
> > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > >
> > >  
> > > Hi again Tom,
> > >
> > > The asymetrical movement is the same with 3 motors and 4 amps.
> > >
> > > Any idea what could cause this?
> > >
> > > Regards
> > >
> > > Art
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Hi Art,
> > > >
> > > > Try increasing the max integrator from 200 to 2047 as it looks like we need
> >
> > > > about 600 DAC counts to go at a speed of 100000 cnts/sec.
> > > >
> > > > But there is something asymmetrical happening as well.
> > > >
> > > > TK
> > > >
> > > >
> > > >
> > > >
> > > > ________________________________
> > > > From: "aeunson@" <aeunson@>
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Tue, September 28, 2010 1:21:19 PM
> > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > >
> > > > ÃÆ'‚ 
> > > > Thanks Tom
> > > >
> > > > I see that now you have explained it.
> > > >
> > > > I have changed the paramaters as suggested and tried tuning the system.
> > > >
> > > > To get the command and position to track I have increased the p gain to
> >1.2,
> >
> >
> > > > this allows me to make a move upto 10000 before the output starts to
> > distort.
> > > >
> > > > Above 10000 the output on the return starts to distort so I then increased
>
> > >the
> > >
> > >
> > > > feed forward V to 0.003. this let me increase the move to 90000 before the
>
> > > > output distorts.
> > > >
> > > > I then tried to increase the velocity but the output starts to distort
> > again.
> > > >
> > > > The x axis is 800mm and the movement still seems quite slow.
> > > >
> > > > I am not sure if I am changing the correct parameters can you please
> >advise.
> > > >
> > > > I have uploaded some screenshots
> > > >
> > > > Regards
> > > >
> > > > Art
> > > >
> > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > >
> > > > > Hi Art,
> > > > >
> > > > > Your Jerk setting is extremely low.
> > > > >
> > > > > With a Jerk limit of only 3000 cnts/sec^3 and a max acceleration of
> >175542
> >
> >
> > > > > cnts/sec^2 it would take:
> > > > >
> > > > > 175542/3000 = 58 seconds
> > > > >
> > > > > before the acceleration would ramp up to the maximum you are
> > >specifying.ÃÆ'Æ'‚ÃÆ'‚ 
> > >
> > >
> > > > >Mach3
> > > > >
> > > > > has no Jerk limit, it applies the full acceleration you specify
> > > >instantly.ÃÆ'Æ'‚ÃÆ'‚  So
> > > >
> > > > >
> > > > > to see a similar motion that equates to what Mach3 is generating, set the
> >
> > > >Jerk
> > > >
> > > >
> > > > > to a much bigger number like 2e7.ÃÆ'Æ'‚ÃÆ'‚  Then the
> >acceleration will be
> >
> > >fully
> > >
> > > >applied
> > > >
> > > > >
> > > > > in a few milliseconds:
> > > > >
> > > > > 175542/20000000 = 0.008 seconds.
> > > > >
> > > > >
> > > > > There is also a mistake with the velocity.ÃÆ'Æ'‚ÃÆ'‚  Mach3
> >specifies the max
> >
> > >
> > > >velocity
> > > >
> > > > >per
> > > > >
> > > > > minute rather than per second so the velocity in counts/sec would be
> >48761
> >
> >
> > > > > rather than 2925700.
> > > > >
> > > > >
> > > > > After you make these two corrections the motionÃÆ'Æ'‚ÃÆ'‚ on the
> >Step
> >
> > >Response
> > >
> > > >screen
> > > >
> > > > >will
> > > > >
> > > > > be much faster and you will probably see larger following
> >errors.ÃÆ'Æ'‚ÃÆ'‚ 
> >
> > >You
> > >
> > > >will
> > > >
> > > > >then
> > > > >
> > > > > be able to tune the system and determine the real limitations of your
> > > system.
> > > > >
> > > > > Regards
> > > > > TK
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > ________________________________
> > > > > From: "aeunson@" <aeunson@>
> > > > > To: DynoMotion@yahoogroups.com
> > > > > Sent: Mon, September 27, 2010 3:09:52 PM
> > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > >
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > Tom
> > > > >
> > > > > I have uploaded the mach motor tuning screenshot and the kmotion screen
> > > shot.
> > > > >
> > > > > The servo with linear actuator connected is 7mm / motor rev. the
> >resolution
> >
> > >
> > > >is
> > > >
> > > >
> > > > > 4096 per rev.
> > > > >
> > > > > If the velocity in mach is any more than 5000 I get a follower error.
> > > > > At 5000 the movement of the table is quite slow but accurate.
> > > > >
> > > > > I also converted the mach figures as advised and ran them in kmotion
> >where
> >
> >
> > > >the
> > > >
> > > >
> > > > > table seemed to move even slower.
> > > > >
> > > > > Please advise where you think I have gone wrong.
> > > > >
> > > > > Regards
> > > > >
> > > > > Art
> > > > >
> > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > >
> > > > > > Art,
> > > > > >
> > > > > > Well you need to test the motion on the Step Response Screen for the
> >same
> >
> > >
> > > > >type
> > > > >
> > > > >
> > > > > > of motion you are attempting under Mach3 to see a respective
> > > >response.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > >
> > > > >For
> > > > >
> > > > > > example making a small/slow move from the Step Response screen may show
> >
> > > >small
> > > >
> > > > >
> > > > > > following errors, but a large, faster, higher acceleration move under
> > >Mach3
> > >
> > > >
> > > > >may
> > > > >
> > > > > >
> > > > > > have large following errors.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > >
> > > > > > #1 What Velocity and Acceleration do you have Mach3 "Tuning" Set at?
> > > > > >
> > > > > > #2 What following error setting are you using?
> > > > > >
> > > > > > #3 Mach3 motions are not Jerk
> >LimitedÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ so set the
> >
> > >KMotion Jerk value
> > >
> > > >100X
> > > >
> > > > >the
> > > > >
> > > > > > acceleration value to see a similar motion.
> > > > > >
> > > > > > #4 convert the Mach3 Vel and Accel values to encoder counts (multiply
> >by
> >
> >
> > > > >counts
> > > > >
> > > > > >
> > > > > > per mm)
> > > > > >
> > > > > > #5 plot a 90mm motion (Command, Position, Output)
> > > > > >
> > > > > > TK
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > ________________________________
> > > > > > From: "aeunson@" <aeunson@>
> > > > > > To: DynoMotion@yahoogroups.com
> > > > > > Sent: Mon, September 27, 2010 1:05:52 PM
> > > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > > >
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > >
> > > > > > Tom,
> > > > > >
> > > > > > There is the message in the console "Following error 0 axis disabled
> > > > > >
> > > > > > I did tune them in the response screen before running Mach a few weeks
>
> > > ago.
> > > > > >
> > > > > > Regards
> > > > > >
> > > > > > Art
> > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > >
> > > > > > > Hi Art,
> > > > > > >
> > > > > > > Is there a message in the KMotion Console screen such as "Following
> > > > > >error..."?
> > > > > > >
> > > > > > > Before attempting to use Mach3 you should tune the motors using the
> > > >KMotion
> > > >
> > > > >
> > > > > > >Step
> > > > > > >
> > > > > > > Response Screen and verify that you can make moves at your needed
> > >speeds
> > >
> > >
> > > > >and
> > > > >
> > > > >
> > > > > > >
> >accuracies.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > What are your
> >
> > >following errors for a 45mm
> > >
> > > >move?
> > > > > > >
> > > > > > > Regards
> > > > > > >
> >TKÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > ________________________________
> > > > > > > From: "aeunson@" <aeunson@>
> > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > Sent: Mon, September 27, 2010 10:56:07 AM
> > > > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > > > >
> > > > > > >
> >ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> >
> > > > > > > Hi Tom
> > > > > > >
> > > > > > > I have finaly managed to get some time on the router.
> > > > > > >
> > > > > > > I have the x & y axis connected and the motor tuning all set up so
> >that
> >
> > >I
> > >
> > > >
> > > > >can
> > > > >
> > > > > >
> > > > > > > accurately drive the table in Mach a set amount but if I try and
> >drive
> >
> > >it
> > >
> > > >
> > > > > > > anymore than 45mm at a time the table stops and I get this message:
> > > > > >"dynamotion
> > > > > >
> > > > > > >
> > > > > > > status all axes disabled"
> > > > > > >
> > > > > > > Any idea where I have gone wrong?
> > > > > > >
> > > > > > > Art
> > > > > > >
> > > > > > > --- In DynoMotion@yahoogroups.com, "aeunson@" <aeunson@> wrote:
> > > > > > > >
> > > > > > > >
> > > > > > > > Hi Tom,
> > > > > > > >
> > > > > > > > I realised that just before going to bed last night and all is
> > >working
> > >
> > >
> > > > > >well.
> > > > > > > >
> > > > > > > > However I did have to set steps per to 322.5 to get the DRO to read
> >
> > > > > >correctly
> > > > > >
> > > > > > >
> > > > > > > >as it was reading low with the calculated value.
> > > > > > > >
> > > > > > > > I think I can now wait untill I fully complete the machine before I
> >
> > > >take
> > > >
> > > >
> > > > > >this
> > > > > >
> > > > > > >
> > > > > > > >any further when I will probably be back with lots of questions.
> > > > > > > >
> > > > > > > > Once I get it up and running I will post a video of it running but
>
> > >this
> > >
> > > >
> > > > > >will
> > > > > >
> > > > > > >be
> > > > > > >
> > > > > > > >a few weeks
> > > > > > > >
> > > > > > > > Thanks for yor help. You certainly support your product well.
> > > > > > > >
> > > > > > > > Best regards
> > > > > > > >
> > > > > > > > Art
> > > > > > > >
> > > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > >
> > > > > > > > > Hi Art,
> > > > > > > > >
> > > > > > > > >
> >>No.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > In KMotion everything
> > >
> > > >is in
> > > >
> > > >
> >>>counts.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > You would
> > >
> > > > >
> > > > > >change Mach3
> > > > > >
> > > > > > >"Motor
> > > > > > >
> > > > > > > > >
> >>Tuning".ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > Since you work in
> > >
> >>>mm.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > 
> > >
> > > >
> > > > >The number of counts/mm
> > > > >
> > > > > >would be:
> > > > > > > > >
> > > > > > > > > 4096*2/25.4=322.5196 counts/mm
> > > > > > > > >
> > > > > > > > > Regards
> > > > > > > > > TK
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > ________________________________
> > > > > > > > > From: "aeunson@" <aeunson@>
> > > > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > > > Sent: Fri, August 13, 2010 4:50:05 PM
> > > > > > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > > > > > >
> > > > > > > > >
> >>ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > >
> > > > > > > > >
> > > > > > > > > Hi Tom,
> > > > > > > > >
> > > > > > > > > This motor is conected to a ballscrew which is 2 turns to the
> > inch.
> > > > > > > > >
> > > > > > > > > Do I change this in kmotion and re-write the c prog?
> > > > > > > > >
> > > > > > > > > Regards
> > > > > > > > >
> > > > > > > > > Art
> > > > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > > >
> > > > > > > > > > Hi Arthur,
> > > > > > > > > >
> > > > > > > > > > I don't see anything specifically wrong in the Mach3Mill.xml
> > > > > >
> >>>>file.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > 
> > > > It
> > > >
> > > > > > >
> > > > > > > >seems
> > > > > > > >
> > > > > > > > > >to
> > > > > > > > > >
> > > > > > > > > > work for
> >>>me.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > 
> > > > Apparently
> > > >
> > > > >Mach3 has an issue where it
> > > > >
> > > > > >saves the
> > > > > >
> > > > > > >XML file
> > > > > > >
> > > > > > > >into
> > > > > > > >
> > > > > > > > > > whatever the current directory is when you exit which I think
> >can
> >
> > >
> > > > > >result
> > > > > >
> > > > > > >in
> > > > > > >
> > > > > > > >
> > > > > > > > > >lost
> > > > > > > > > >
> > > > > > > > > > changes and
> >>>confusion.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > 
> > > > Also
> > > >
> > > > >sometimes the units
> > > > >
> > > > > >inexplicably
> > > > > >
> > > > > > >change
> > > > > > >
> > > > > > > >from
> > > > > > > >
> > > > > > > > > >inches
> > > > > > > > > >
> > > > > > > > > > to mm mode, so check if somehow your base units somehow got
> > > >switched
> > > >
> > > > >to
> > > > >
> > > > > >
> > > > > > > mm.
> > > > > > > > > >
> > > > > > > > > > Maybe check what feed rate you specified?
> > > > > > > > > >
> > > > > > > > > > I see you set the resolution to 4096 which is the number of
> > >encoder
> > >
> > > >
> > > > > > > > > >counts/motor
> > > > > > > > > >
> > > > > > > > > >
> >>>rev.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > 
> > > > Usually mills have a
> > > >
> > > > >lead screw with about 5
> > > > >
> > > > > >turns/inch so
> > > > > >
> > > > > > >the
> > > > > > >
> > > > > > > >correct
> > > > > > > >
> > > > > > > > > > value would probably be more like 5x4096.
> > > > > > > > > >
> > > > > > > > > > Let us know how it goes and thanks for participating in the
> > >Group.
> > > > > > > > > >
> > > > > > > > > > TK
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > ________________________________
> > > > > > > > > > From: "aeunson@" <aeunson@>
> > > > > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > > > > Sent: Fri, August 13, 2010 8:26:29 AM
> > > > > > > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > > > > > > >
> > > > > > > > > >
> >>>ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > 
> > > >
> > > > > > > > > > Hi Tom
> > > > > > > > > >
> > > > > > > > > > I have it working.
> > > > > > > > > > Given a G0 x200 it will drive to 200. G0 x100 it will return to
> >
> > >100
> > >
> > > >
> > > > >and
> > > > >
> > > > > >
> > > > > > >G0
> > > > > > >
> > > > > > > >x0
> > > > > > > >
> > > > > > > > > >it
> > > > > > > > > >
> > > > > > > > > > returns to zero.
> > > > > > > > > > G1 & G2 are very very slow.
> > > > > > > > > >
> > > > > > > > > > But it is slow so I posted the xml file into the files section
> >to
> >
> > >
> > > >see
> > > >
> > > > >
> > > > > > >where
> > > > > > >
> > > > > > > >I
> > > > > > > >
> > > > > > > > > > have gone wrong.
> > > > > > > > > >
> > > > > > > > > > All the motors are the same but the x & y axis are different
> > > >gearing
> > > >
> > > > >so
> > > > >
> > > > > >I
> > > > > >
> > > > > > >
> > > > > > > > > >should
> > > > > > > > > >
> > > > > > > > > > be able to figure them out now.
> > > > > > > > > >
> > > > > > > > > > It going to be a couple of weeks before I get working on the
> >full
> >
> > >
> > > > >table
> > > > >
> > > > > >
> > > > > > >but
> > > > > > >
> > > > > > > >I
> > > > > > > >
> > > > > > > > > >am
> > > > > > > > > >
> > > > > > > > > > very pleased I can now drive a single motor with mach3 and
> >prove
> >
> > >it
> > >
> > > >
> > > > > >will
> > > > > >
> > > > > >
> > > > > > > >work.
> > > > > > > > > >
> > > > > > > > > > Regards
> > > > > > > > > >
> > > > > > > > > > Arthur
> > > > > > > > > >
> > > > > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > > > >
> > > > > > > > > > > Hi Arthur,
> > > > > > > > > > >
> > > > > > > > > > >
> >>>>Strange.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚Ã
> ‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > 
> > > > 
> > > > > What about a G1 or
> > > > >
> > > > > >G2 move of for example
> > > > > >
> > > > > > >1 inch?
> > > > > > > > > > >
> > > > > > > > > > > What is your Mach3 Motor Tuning - Resolution, Vel, Accel,
> > >Units?
> > > > > > > > > > >
> > > > > > > > > > > Maybe you should send your Mach3 XML file.
> > > > > > > > > > >
> > > > > > > > > > > TK
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > ________________________________
> > > > > > > > > > > From: "aeunson@" <aeunson@>
> > > > > > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > > > > > Sent: Thu, August 12, 2010 4:40:40 PM
> > > > > > > > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > > > > > > > >
> > > > > > > > > > >
> >>>>ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢Ã
> Æ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > 
> > > > 
> > > > >
> > > > > > > > > > >
> > > > > > > > > > > Hi Tom,
> > > > > > > > > > >
> > > > > > > > > > > Nearly there but not quite.
> > > > > > > > > > >
> > > > > > > > > > > When I Jog in mach it will continue to run in one direction
> > > >untill
> > > >
> > > > >I
> > > > >
> > > > >
> > > > > > >jog
> > > > > > >
> > > > > > > >in
> > > > > > > >
> > > > > > > > > >the
> > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > opposite direction where it will still keep running.
> > > > > > > > > > >
> > > > > > > > > > > Here is the program I ended up with.
> > > > > > > > > > >
> > > > > > > > > > > Regards
> > > > > > > > > > >
> > > > > > > > > > > Arthur
> > > > > > > > > > >
> > > > > > > > > > > ch0->InputMode=ENCODER_MODE;
> > > > > > > > > > > ch0->OutputMode=DAC_SERVO_MODE;
> > > > > > > > > > > ch0->Vel=10000;
> > > > > > > > > > > ch0->Accel=100000;
> > > > > > > > > > > ch0->Jerk=1000000;
> > > > > > > > > > > ch0->P=0.8000000119209;
> > > > > > > > > > > ch0->I=9.999999747379e-005;
> > > > > > > > > > > ch0->D=0;
> > > > > > > > > > > ch0->FFAccel=0;
> > > > > > > > > > > ch0->FFVel=0;
> > > > > > > > > > > ch0->MaxI=200;
> > > > > > > > > > > ch0->MaxErr=200;
> > > > > > > > > > > ch0->MaxOutput=2047;
> > > > > > > > > > > ch0->DeadBandGain=1;
> > > > > > > > > > > ch0->DeadBandRange=0;
> > > > > > > > > > > ch0->InputChan0=0;
> > > > > > > > > > > ch0->InputChan1=1;
> > > > > > > > > > > ch0->OutputChan0=0;
> > > > > > > > > > > ch0->OutputChan1=1;
> > > > > > > > > > > ch0->MasterAxis=-1;
> > > > > > > > > > > ch0->LimitSwitchOptions=0x0;
> > > > > > > > > > > ch0->InputGain0=-1;
> > > > > > > > > > > ch0->InputGain1=1;
> > > > > > > > > > > ch0->InputOffset0=0;
> > > > > > > > > > > ch0->InputOffset1=0;
> > > > > > > > > > > ch0->OutputGain=1;
> > > > > > > > > > > ch0->OutputOffset=0;
> > > > > > > > > > > ch0->SlaveGain=1;
> > > > > > > > > > > ch0->BacklashMode=BACKLASH_OFF;
> > > > > > > > > > > ch0->BacklashAmount=0;
> > > > > > > > > > > ch0->BacklashRate=0;
> > > > > > > > > > > ch0->invDistPerCycle=1;
> > > > > > > > > > > ch0->Lead=0;
> > > > > > > > > > > ch0->MaxFollowingError=4000;
> > > > > > > > > > > ch0->StepperAmplitude=250;
> > > > > > > > > > >
> > > > > > > > > > > ch0->iir[0].B0=1;
> > > > > > > > > > > ch0->iir[0].B1=0;
> > > > > > > > > > > ch0->iir[0].B2=0;
> > > > > > > > > > > ch0->iir[0].A1=0;
> > > > > > > > > > > ch0->iir[0].A2=0;
> > > > > > > > > > >
> > > > > > > > > > > ch0->iir[1].B0=1;
> > > > > > > > > > > ch0->iir[1].B1=0;
> > > > > > > > > > > ch0->iir[1].B2=0;
> > > > > > > > > > > ch0->iir[1].A1=0;
> > > > > > > > > > > ch0->iir[1].A2=0;
> > > > > > > > > > >
> > > > > > > > > > > ch0->iir[2].B0=1;
> > > > > > > > > > > ch0->iir[2].B1=0;
> > > > > > > > > > > ch0->iir[2].B2=0;
> > > > > > > > > > > ch0->iir[2].A1=0;
> > > > > > > > > > > ch0->iir[2].A2=0;
> > > > > > > > > > >
> > > > > > > > > > > EnableAxisDest (0,ch0->Position);
> > > > > > > > > > >
> > > > > > > > > > > DefineCordSystem (0,-1,-1,-1);
> > > > > > > > > > >
> > > > > > > > > > > return 0;
> > > > > > > > > > >
> > > > > > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > > > > >
> > > > > > > > > > > > Hi Arthur,
> > > > > > > > > > > >
> > > > > > > > > > > > I didn't see a new file uploaded.
> > > > > > > > > > > >
> > > > > > > > > > > > Now that you have one axis working you are ready to try
> > >driving
> > >
> > > >
> > > > >it
> > > > >
> > > > >
> > > > > > >from
> > > > > > >
> > > > > > > >
> > > > > > > > > >
> >>>>>Mach3.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚Ã
> ‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > 
> > > > 
> > > > >
> > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > > You need to make a C program that Mach can use to configure
> >
> > > > >KFlop.
> > > > > > > > > > > >
> > > > > > > > > > > > Follow the procedure described here (you are now at step
> 4)
> > > > > > > > > > > >
> > > > > > > > > > > > http://www.dynomotion.com/Help/Mach3Plugin/Mach3.htm
> > > > > > > > > > > >
> > > > > > > > > > > > Start with some Example Initialization program such as
> > > > > > > > >
> >>>>>InitStepDir3Axis.c.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚Ã
> Æ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > 
> > > > 
> > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > > > Paste
> >>>>yourÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚ÂÂ
> ¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ configuration
> >n
> > >n
> > > >n
> > > > >
> > > > > >over the ch0
> > > > > >
> > > > > >
> >>>>>settings.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚
> ¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > 
> > > > 
> > > > > Remove
> > > > >
> > > > > > >
> > > > > > > >all the
> > > > > > > >
> > > > > > > > > >settings
> > > > > > > > > >
> > > > > > > > > > >for
> > > > > > > > > > >
> > > > > > > > > > > >ch1
> > > > > > > > > > > >
> > > > > > > > > > > > and ch2.
> > > > > > > > > > > >
> > > > > > > > > > > > Change the
> >>>>>DefineCoordSystemÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'
> ‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ call
> >l
> > >l
> > > >l
> > > > >l to just define
> > > > >
> > > > > >
> > > > > > >one ch0 axis
> > > > > > >
> > > > > > > >in the
> > > > > > > >
> > > > > > > > > >system
> > > > > > > > > >
> > > > > > > > > > >as
> > > > > > > > > > >
> > > > > > > > > > > >X
> > > > > > > > > > > >
> > > > > > > > > > > >
> >>>>by:ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚ÂÂ
> ¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > 
> > > > 
> > > > >
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > > DefineCoordSystem(0,-1,-1,-1);
> > > > > > > > > > > >
> > > > > > > > > > > > Also change the Enable statement from:
> > > > > > > > > > > >
> > > > > > > > > > > > EnableAxisDest(0,0);
> > > > > > > > > > > >
> > > > > > > > > > > > to
> > > > > > > > > > > >
> > > > > > > > > > > > EnableAxisDest(0, ch0->Position);
> > > > > > > > > > > >
> > > > > > > > > > > > (this will enable the axis and servo at the current encoder
> >
> > > > > >position,
> > > > > >
> > > > > > >
> > > > > > > > > > >otherwise
> > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > > you might get a rapid motion to a destination of zero)
> > > > > > > > > > > >
> > > > > > > > > > > > Let us know how far you get.
> > > > > > > > > > > >
> > > > > > > > > > > > Regards
> > > > > > > > > > > > TK
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > > ________________________________
> > > > > > > > > > > > From: "aeunson@" <aeunson@>
> > > > > > > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > > > > > > Sent: Thu, August 12, 2010 1:35:53 AM
> > > > > > > > > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > > > > > > > > >
> > > > > > > > > > > >
> >>>>ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢Ã
> Æ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > 
> > > > 
> > > > >
> > > > > > > > > > > >
> > > > > > > > > > > > Thanks Tom,
> > > > > > > > > > > >
> > > > > > > > > > > > Your support of your product is excellent and I now feel I
> >am
> >
> > >
> > > > > >getting
> > > > > >
> > > > > > >
> > > > > > > > > > > >somewhere.
> > > > > > > > > > > >
> > > > > > > > > > > > I increased the P gain upto 1.7 where I could just feel the
> >
> > > >motor
> > > >
> > > > >
> > > > > > > >oscillate
> > > > > > > >
> > > > > > > > > >
> > > > > > > > > > >so
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > > reduced it to 0.8.
> > > > > > > > > > > >
> > > > > > > > > > > > The I gain was set to 0.0001,any higher and it seemd to
> > >create
> > >
> > > >an
> > > >
> > > > >
> > > > > > > >overshoot
> > > > > > > >
> > > > > > > > > >
> > > > > > > > > > >of
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > > the output.
> > > > > > > > > > > >
> > > > > > > > > > > > I also noticed to get a full revolution I had to increase
> >the
> >
> > >
> > > > >move
> > > > >
> > > > > >to
> > > > > >
> > > > > > >
> > > > > > > > > 4096.
> > > > > > > > > > > >
> > > > > > > > > > > > Again I have uploaded the results to the files section.
> > > > > > > > > > > >
> > > > > > > > > > > > Before I move everything out to the workshop and connect up
> >
> > >the
> > >
> > > >
> > > > > > >machine
> > > > > > >
> > > > > > > >for
> > > > > > > >
> > > > > > > > > >
> > > > > > > > > > > >real
> > > > > > > > > > > >
> > > > > > > > > > > > I would like to be able to understand getting Mach to work
> >on
> >
> > >
> > > >the
> > > >
> > > > >
> > > > > > > >single
> > > > > > > >
> > > > > > > > > >axis
> > > > > > > > > >
> > > > > > > > > > >I
> > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > > have here in the office. I will also connect up home and
> > >limit
> > >
> > >
> > > > > > > >switches.
> > > > > > > > > > > >
> > > > > > > > > > > > Regards
> > > > > > > > > > > >
> > > > > > > > > > > > Arthur
> > > > > > > > > > > >
> > > > > > > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@>
> wrote:
> > > > > > > > > > > > >
> > > > > > > > > > > > > Congratulations
> >>>>>Arthur!ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'‚ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…ÂÂ
> ¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'‚ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'
> Æ'‚ÃÆ'
> >Æ'
> >‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢
> ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > 
> > > > 
> > > > >ÃÆ'‚ 
> > > > > >
> > > > > > >You now have a closed
> > > > > > >
> > > > > > > >servo
> > > > > > > >
> > > > > > > > >
> >>>>>>loop.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'‚ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…ÂÂ
> ¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'‚ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'
> Æ'‚ÃÆ'‚
> >Å¡
> >¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'
> ¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > 
> > > > 
> > > > >ÃÆ'‚ 
> > > > > >
> > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > > > Since moving 1000 counts results in 1/2 rev, then the
> > > > >resolution
> > > > >
> > > > >
> > > > > > >must
> > > > > > >
> > > > > > > >be
> > > > > > > >
> > > > > > > > >
> > > > > > > > > > > >about
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > > > 2000 counts/rev.
> > > > > > > > > > > > >
> > > > > > > > > > > > > Of course your motion is very slow and sloppy so the next
> >
> > > >step
> > > >
> > > > >is
> > > > >
> > > > > >
> > > > > > >to
> > > > > > >
> > > > > > >
> > > > > > > > > > >optimize
> > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > > > the servo
> >>>>>tuning.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'‚ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…ÂÂ
> ¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'‚ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'
> Æ'‚ÃÆ'
> >Æ'
> >‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢
> ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > 
> > > > 
> > > > >ÃÆ'‚ 
> > > > > > Please
> > > > > >
> > > > > > >see:
> > > > > > > > > > > > >
> > > > > > > > > > > > >
> http://tech.groups.yahoo.com/group/DynoMotion/message/507
> > > > > > > > > > > > >
> > > > > > > > > > > > > Notice in your case, the output (green plot and right
> >side
> >
> >
> > > > > > > > >
> >>>>>>scale)ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'‚ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…ÂÂ
> ¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'‚ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'
> Æ'‚ÃÆ'
> >Æ'
> >‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢
> ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ is
> >s
> > >s
> > > >s
> > > > >s
> > > > > >
> > > > > > > > > >
> > > > > > > > > > > >clamping
> > > > > > > > > > > >
> > > > > > > > > > > > >at
> > > > > > > > > > > > >
> > > > > > > > > > > > > only 20 DAC counts
> >>>>>>(~0.1V).ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚ÂÃ<br/><br/>(Message over 64 KB, truncated)
Group: DynoMotion Message: 687 From: Tom Kerekes Date: 10/2/2010
Subject: Re: Kflop / Kanalog
Both.  As I said, keep the Jerk 100X of the Acceleration.
 
TK
Group: DynoMotion Message: 688 From: aeunson@btinternet.com Date: 10/3/2010
Subject: Re: Kflop / Kanalog
Tom,

Can you check the uploaded c program to see where I have gone wrong.
I have added the Y axis and limit switches on x and Y axis.
Set the motor tuning in Mach etc.

When I run Mach I get a Y axis disabled.

I also set up the limit and home I/Ps in Mach but they keep changing.

I set the pins to:
X+ 136
x- 137
x hme 136
Y+ 138
Y- 139
Y home 138

When I go back to the I/P screen they have changed to:
X+ -120
X- -119
X home -120
Y+ -118
Y- -117
Y home -118

Best Regards

Art

--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Both.  As I said, keep the Jerk 100X of the Acceleration.
>
> TK
>
>
> ________________________________
> From: "aeunson@..." <aeunson@...>
> To: DynoMotion@yahoogroups.com
> Sent: Sat, October 2, 2010 3:28:31 PM
> Subject: [DynoMotion] Re: Kflop / Kanalog
>
>  
> Thanks Tom,
>
> Do I reduce the acceleration or increase the jerk?
>
> regards
>
> Art
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Art,
> >
> > That looks very good.  Except the Acceleration limit is basically set to
> > infinity so the max acceleration is limited by the Jerk (and the Max
> >Velocity). 
> >
> > It would take 500 seconds at the specified Jerk to reach the max acceleration,
>
> > but after a fraction of a second of ramping the acceleration the max velocity
> > would be exceeded.  This is fine for generating nice smooth motion, but since
>
> > Mach3 has no Jerk control that value of acceleration won't work.  As you
> >change
> >
> > the Acceleration keep the numeric value of the Jerk about 100X larger than the
>
> > numeric value of the Acceleration.  This will apply the full Acceleration in ~
> >
> > 0.01 seconds which is similar to what happens in Mach3.
> >
> > TK 
> >
Group: DynoMotion Message: 689 From: Tom Kerekes Date: 10/3/2010
Subject: Re: Kflop / Kanalog
Art,
 
The line in your c program:
 
    EnableAxisDest(0,ch1->Position);
should be
    EnableAxisDest(1,ch1->Position);
Otherwise you are enabling axis 0 axis 1's position and never enabling axis 1 (Y).
 
There is not really any point to defining limits and home inputs in Mach3.  In original Mach3 those were handled by the Parallel Port Kernel driver (which is no longer used). 
 
Limits must be configured in the KFlop configuration so they are monitored in real-time.  Home inputs are also handled by a KFlop Homing program.
 
Also Mach3 only likes "Pin" numbers less than 128.  To configure Mach Inputs for KFlop I/O numbers greater than or equal to 128, subtract 128 from the number and specify Port #2.
 
Regards
TK
 
 
 
 
 

Group: DynoMotion Message: 692 From: aeunson@btinternet.com Date: 10/5/2010
Subject: Re: Kflop / Kanalog
Hi Tom

I have separate limits for each end on all axis and I was hoping to use one of the as the home switch to0. Is this possible? I also have the axis set to disallow drive into limit.
I am not sure how I would set the system up to automatically move the drive back into limit. Anyway this will not work when I get the flash error when I try to reset after the Y axis hits the limit.

I was assuming that I could use one of the limits and configure the plugin mach to run the home program by using the ref all home button and it would home each axis.

Regards

Art

From: Tom Kerekes [mailto:tk@...]
Sent: 05 October 2010 12:52 AM
To: Arthur Eunson
Subject: Re: Flash error

Hi Art,

Well I think we need to come up with a scheme of getting out of the limit without getting another limit error and disable. The simplest is if you have separate limits and use disallow drive into limit. Otherwise your reset has to leave limits disabled until you get back out of the limits. Or you can have Reset automatically move back inside the limit before re-enabling limits.

The creep issue is because it is really hard to command the Amps to move at exactly zero velocity. If you can get the table to sit still by commanding some small + or - DAC count then that can be entered as a OutputOffset value for the axis. Otherwise you will need to wire up an amplifier disable signal and use a KFlop "watchdog" program to disable the amplifiers whenever any axis is disabled.

Regards
TK


--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Art,
>
> The line in your c program:
>
>     EnableAxisDest(0,ch1->Position);
>
> should be
>
>     EnableAxisDest(1,ch1->Position);
>
> Otherwise you are enabling axis 0 axis 1's position and never enabling axis 1
> (Y).
>
> There is not really any point to defining limits and home inputs in Mach3.  In
> original Mach3 those were handled by the Parallel Port Kernel driver (which is
> no longer used). 
>
>
> Limits must be configured in the KFlop configuration so they are monitored in
> real-time.  Home inputs are also handled by a KFlop Homing program.
>
> Also Mach3 only likes "Pin" numbers less than 128.  To configure Mach Inputs for
> KFlop I/O numbers greater than or equal to 128, subtract 128 from the number and
> specify Port #2.
>
> Regards
> TK
>
>
>
>
>
>
>
>
> ________________________________
> From: "aeunson@..." <aeunson@...>
> To: DynoMotion@yahoogroups.com
> Sent: Sun, October 3, 2010 4:40:51 PM
> Subject: [DynoMotion] Re: Kflop / Kanalog
>
>  
> Tom,
>
> Can you check the uploaded c program to see where I have gone wrong.
> I have added the Y axis and limit switches on x and Y axis.
> Set the motor tuning in Mach etc.
>
> When I run Mach I get a Y axis disabled.
>
> I also set up the limit and home I/Ps in Mach but they keep changing.
>
> I set the pins to:
> X+ 136
> x- 137
> x hme 136
> Y+ 138
> Y- 139
> Y home 138
>
> When I go back to the I/P screen they have changed to:
> X+ -120
> X- -119
> X home -120
> Y+ -118
> Y- -117
> Y home -118
>
> Best Regards
>
> Art
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Both.  As I said, keep the Jerk 100X of the Acceleration.
> >
> > TK
> >
> >
> > ________________________________
> > From: "aeunson@" <aeunson@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Sat, October 2, 2010 3:28:31 PM
> > Subject: [DynoMotion] Re: Kflop / Kanalog
> >
> >  
> > Thanks Tom,
> >
> > Do I reduce the acceleration or increase the jerk?
> >
> > regards
> >
> > Art
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Art,
> > >
> > > That looks very good.  Except the Acceleration limit is basically set to
> > > infinity so the max acceleration is limited by the Jerk (and the Max
> > >Velocity). 
> > >
> > > It would take 500 seconds at the specified Jerk to reach the max
> >acceleration,
> >
> >
> > > but after a fraction of a second of ramping the acceleration the max velocity
> >
> > > would be exceeded.  This is fine for generating nice smooth motion, but
> >since
> >
> >
> > > Mach3 has no Jerk control that value of acceleration won't work.  As you
> > >change
> > >
> > > the Acceleration keep the numeric value of the Jerk about 100X larger than
> >the
> >
> >
> > > numeric value of the Acceleration.  This will apply the full Acceleration
> >in ~
> >
> > >
> > > 0.01 seconds which is similar to what happens in Mach3.
> > >
> > > TK 
> > >
>
Group: DynoMotion Message: 695 From: Tom Kerekes Date: 10/5/2010
Subject: Re: Kflop / Kanalog
Hi Art,
 
Attached is a newer firmware that should solve the communication problem after a disable message.
 
Copy it to the DSP_KFLOP directory and use the Config/Flash Screen to flash it as a new Version.
 
The Version command in the console should then report the firmware version as 4.23B
 
Yes the Ref All Home button can be made to work.  As well as homing to a limit switch.  But first Homing Programs must be created for your system.
 
I've attached an example.  Please see if you understand it and if it works.
 
After it is working properly we can merge the code into the HomeMach3.c so the Mach3 Plugin Messages will execute the code.
 
Regards
TK

Group: DynoMotion Message: 696 From: aeunson@btinternet.com Date: 10/5/2010
Subject: Re: Kflop / Kanalog
Hi Tom

That has cured the reset problem.

I am not sure how to test the home program I opened it in the C program window and tried to run it but the table just gives a small movement on both axis. The table was no where near the switches.

Is this the right way to test it?

Regards

Art
--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Art,
>
> Attached is a newer firmware that should solve the communication problem after a
> disable message.
>
> Copy it to the DSP_KFLOP directory and use the Config/Flash Screen to flash it
> as a new Version.
>
> The Version command in the console should then report the firmware version as
> 4.23B
>
> Yes the Ref All Home button can be made to work.  As well as homing to a limit
> switch.  But first Homing Programs must be created for your system.
>
> I've attached an example.  Please see if you understand it and if it works.
>
> After it is working properly we can merge the code into the HomeMach3.c so the
> Mach3 Plugin Messages will execute the code.
>
> Regards
> TK
>
>
>
> ________________________________
> From: "aeunson@..." <aeunson@...>
> To: DynoMotion@yahoogroups.com
> Sent: Tue, October 5, 2010 12:53:54 AM
> Subject: [DynoMotion] Re: Kflop / Kanalog
>
>  
> Hi Tom
>
> I have separate limits for each end on all axis and I was hoping to use one of
> the as the home switch to0. Is this possible? I also have the axis set to
> disallow drive into limit.
> I am not sure how I would set the system up to automatically move the drive back
> into limit. Anyway this will not work when I get the flash error when I try to
> reset after the Y axis hits the limit.
>
> I was assuming that I could use one of the limits and configure the plugin mach
> to run the home program by using the ref all home button and it would home each
> axis.
>
> Regards
>
> Art
>
> From: Tom Kerekes [mailto:tk@...]
> Sent: 05 October 2010 12:52 AM
> To: Arthur Eunson
> Subject: Re: Flash error
>
> Hi Art,
>
> Well I think we need to come up with a scheme of getting out of the limit
> without getting another limit error and disable. The simplest is if you have
> separate limits and use disallow drive into limit. Otherwise your reset has to
> leave limits disabled until you get back out of the limits. Or you can have
> Reset automatically move back inside the limit before re-enabling limits.
>
> The creep issue is because it is really hard to command the Amps to move at
> exactly zero velocity. If you can get the table to sit still by commanding some
> small + or - DAC count then that can be entered as a OutputOffset value for the
> axis. Otherwise you will need to wire up an amplifier disable signal and use a
> KFlop "watchdog" program to disable the amplifiers whenever any axis is
> disabled.
>
> Regards
> TK
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Art,
> >
> > The line in your c program:
> >
> >     EnableAxisDest(0,ch1->Position);
> >
> > should be
> >
> >     EnableAxisDest(1,ch1->Position);
> >
> > Otherwise you are enabling axis 0 axis 1's position and never enabling axis 1
> > (Y).
> >
> > There is not really any point to defining limits and home inputs in Mach3.  In
> >
> > original Mach3 those were handled by the Parallel Port Kernel driver (which is
>
> > no longer used). 
> >
> >
> > Limits must be configured in the KFlop configuration so they are monitored in
> > real-time.  Home inputs are also handled by a KFlop Homing program.
> >
> > Also Mach3 only likes "Pin" numbers less than 128.  To configure Mach Inputs
> >for
> >
> > KFlop I/O numbers greater than or equal to 128, subtract 128 from the number
> >and
> >
> > specify Port #2.
> >
> > Regards
> > TK
> >
> >
> >
> >
> >
> >
> >
> >
> > ________________________________
> > From: "aeunson@" <aeunson@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Sun, October 3, 2010 4:40:51 PM
> > Subject: [DynoMotion] Re: Kflop / Kanalog
> >
> >  
> > Tom,
> >
> > Can you check the uploaded c program to see where I have gone wrong.
> > I have added the Y axis and limit switches on x and Y axis.
> > Set the motor tuning in Mach etc.
> >
> > When I run Mach I get a Y axis disabled.
> >
> > I also set up the limit and home I/Ps in Mach but they keep changing.
> >
> > I set the pins to:
> > X+ 136
> > x- 137
> > x hme 136
> > Y+ 138
> > Y- 139
> > Y home 138
> >
> > When I go back to the I/P screen they have changed to:
> > X+ -120
> > X- -119
> > X home -120
> > Y+ -118
> > Y- -117
> > Y home -118
> >
> > Best Regards
> >
> > Art
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Both.  As I said, keep the Jerk 100X of the Acceleration.
> > >
> > > TK
> > >
> > >
> > > ________________________________
> > > From: "aeunson@" <aeunson@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Sat, October 2, 2010 3:28:31 PM
> > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > >
> > >  
> > > Thanks Tom,
> > >
> > > Do I reduce the acceleration or increase the jerk?
> > >
> > > regards
> > >
> > > Art
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Hi Art,
> > > >
> > > > That looks very good.ÃÆ'‚  Except the Acceleration limit is basically
> >set to
> >
> > > > infinity so the max acceleration is limited by the Jerk (and the Max
> > > >Velocity).ÃÆ'‚ 
> > > >
> > > > It would take 500 seconds at the specified Jerk to reach the max
> > >acceleration,
> > >
> > >
> > > > but after a fraction of a second of ramping the acceleration the max
> >velocity
> >
> > >
> > > > would be exceeded.ÃÆ'‚  This is fine for generating nice smooth motion,
> >but
> >
> > >since
> > >
> > >
> > > > Mach3 has no Jerk control that value of acceleration won't work.ÃÆ'‚ 
> >As you
> >
> > > >change
> > > >
> > > > the Acceleration keep the numeric value of the Jerk about 100X larger than
>
> > >the
> > >
> > >
> > > > numeric value of the Acceleration.ÃÆ'‚  This will apply the full
> >Acceleration
> >
> > >in ~
> > >
> > > >
> > > > 0.01 seconds which is similar to what happens in Mach3.
> > > >
> > > > TKÃÆ'‚ 
> > > >
> >
>
Group: DynoMotion Message: 697 From: Tom Kerekes Date: 10/5/2010
Subject: Re: Kflop / Kanalog
Hi Art,
 
Yes that is the correct way to test.
 
The SimpleHome3Axis.c program will have to be modified for your system.
 
Probably the program is waiting for the wrong I/O bit as the home switch and/or the wrong polarity of the bit so it just thinks it immediatly saw the switch and did the small motion back inside.
 
Look for the line of:
 
while (!ReadBit(10)) ;  // loop until IO bit goes high
 
 
This line means that "while Bit #10 is NOT true do nothing"
 
The "!" symbol is the NOT operator in the C language.
 
Change the value of 10 to whatever you system is wired as.  Also remove the NOT operator depending on your wiring.
 
Make the appropriate changes for each axis.
 
Regards
TK

Group: DynoMotion Message: 698 From: Ross Ferguson Date: 10/5/2010
Subject: Re: Kflop / Kanalog [2 Attachments]
Hi Tom,
Should we all be updating to the new version 4.23B or just leave things
well enough alone.
I have been doing more threading and it works a treat.
I use Bob Warfield's GWizard programme to get the settings right for
thread sizing.
Excellent programme - as is yours. :)

Ross

On 6/10/2010 10:33 a.m., Tom Kerekes wrote:
> [Attachment(s) <#TopText> from Tom Kerekes included below]
> Hi Art,
> Attached is a newer firmware that should solve the communication
> problem after a disable message.
> Copy it to the DSP_KFLOP directory and use the Config/Flash Screen to
> flash it as a new Version.
> The Version command in the console should then report the firmware
> version as 4.23B
> Yes the Ref All Home button can be made to work. As well as homing to
> a limit switch. But first Homing Programs must be created for your
> system.
> I've attached an example. Please see if you understand it and if it
> works.
> After it is working properly we can merge the code into the
> HomeMach3.c so the Mach3 Plugin Messages will execute the code.
> Regards
> TK
>
> ------------------------------------------------------------------------
> *From:* "aeunson@..." <aeunson@...>
> *To:* DynoMotion@yahoogroups.com
> *Sent:* Tue, October 5, 2010 12:53:54 AM
> *Subject:* [DynoMotion] Re: Kflop / Kanalog
>
> Hi Tom
>
> I have separate limits for each end on all axis and I was hoping to
> use one of the as the home switch to0. Is this possible? I also have
> the axis set to disallow drive into limit.
> I am not sure how I would set the system up to automatically move the
> drive back into limit. Anyway this will not work when I get the flash
> error when I try to reset after the Y axis hits the limit.
>
> I was assuming that I could use one of the limits and configure the
> plugin mach to run the home program by using the ref all home button
> and it would home each axis.
>
> Regards
>
> Art
>
> From: Tom Kerekes [mailto:tk@... <mailto:tk%40dynomotion.com>]
> Sent: 05 October 2010 12:52 AM
> To: Arthur Eunson
> Subject: Re: Flash error
>
> Hi Art,
>
> Well I think we need to come up with a scheme of getting out of the
> limit without getting another limit error and disable. The simplest is
> if you have separate limits and use disallow drive into limit.
> Otherwise your reset has to leave limits disabled until you get back
> out of the limits. Or you can have Reset automatically move back
> inside the limit before re-enabling limits.
>
> The creep issue is because it is really hard to command the Amps to
> move at exactly zero velocity. If you can get the table to sit still
> by commanding some small + or - DAC count then that can be entered as
> a OutputOffset value for the axis. Otherwise you will need to wire up
> an amplifier disable signal and use a KFlop "watchdog" program to
> disable the amplifiers whenever any axis is disabled.
>
> Regards
> TK
>
> --- In DynoMotion@yahoogroups.com
> <mailto:DynoMotion%40yahoogroups.com>, Tom Kerekes <tk@...> wrote:
> >
> > Art,
> >
> > The line in your c program:
> >
> > Â Â Â EnableAxisDest(0,ch1->Position);
> >
> > should be
> >
> > Â Â Â EnableAxisDest(1,ch1->Position);
> >
> > Otherwise you are enabling axis 0 axis 1's position and never
> enabling axis 1
> > (Y).
> >
> > There is not really any point to defining limits and home inputs in
> Mach3. In
> > original Mach3 those were handled by the Parallel Port Kernel driver
> (which is
> > no longer used).Â
> >
> >
> > Limits must be configured in the KFlop configuration so they are
> monitored in
> > real-time. Home inputs are also handled by a KFlop Homing program.
> >
> > Also Mach3 only likes "Pin" numbers less than 128. To configure
> Mach Inputs for
> > KFlop I/O numbers greater than or equal to 128, subtract 128 from
> the number and
> > specify Port #2.
> >
> > Regards
> > TK
> >
> >
> >
> >
> >
> >
> >
> >
> > ________________________________
> > From: "aeunson@..." <aeunson@...>
> > To: DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com>
> > Sent: Sun, October 3, 2010 4:40:51 PM
> > Subject: [DynoMotion] Re: Kflop / Kanalog
> >
> > Â
> > Tom,
> >
> > Can you check the uploaded c program to see where I have gone wrong.
> > I have added the Y axis and limit switches on x and Y axis.
> > Set the motor tuning in Mach etc.
> >
> > When I run Mach I get a Y axis disabled.
> >
> > I also set up the limit and home I/Ps in Mach but they keep changing.
> >
> > I set the pins to:
> > X+ 136
> > x- 137
> > x hme 136
> > Y+ 138
> > Y- 139
> > Y home 138
> >
> > When I go back to the I/P screen they have changed to:
> > X+ -120
> > X- -119
> > X home -120
> > Y+ -118
> > Y- -117
> > Y home -118
> >
> > Best Regards
> >
> > Art
> >
> > --- In DynoMotion@yahoogroups.com
> <mailto:DynoMotion%40yahoogroups.com>, Tom Kerekes <tk@> wrote:
> > >
> > > Both. As I said, keep the Jerk 100X of the Acceleration.
> > >
> > > TK
> > >
> > >
> > > ________________________________
> > > From: "aeunson@" <aeunson@>
> > > To: DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com>
> > > Sent: Sat, October 2, 2010 3:28:31 PM
> > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > >
> > > ÂÂ
> > > Thanks Tom,
> > >
> > > Do I reduce the acceleration or increase the jerk?
> > >
> > > regards
> > >
> > > Art
> > >
> > > --- In DynoMotion@yahoogroups.com
> <mailto:DynoMotion%40yahoogroups.com>, Tom Kerekes <tk@> wrote:
> > > >
> > > > Hi Art,
> > > >
> > > > That looks very good. Except the Acceleration limit is
> basically set to
> > > > infinity so the max acceleration is limited by the Jerk (and the
> Max
> > > >Velocity).ÂÂÂ
> > > >
> > > > It would take 500 seconds at the specified Jerk to reach the max
> > >acceleration,
> > >
> > >
> > > > but after a fraction of a second of ramping the acceleration the
> max velocity
> > >
> > > > would be exceeded. This is fine for generating nice
> smooth motion, but
> > >since
> > >
> > >
> > > > Mach3 has no Jerk control that value of acceleration won't
> work. As you
> > > >change
> > > >
> > > > the Acceleration keep the numeric value of the Jerk about 100X
> larger than
> > >the
> > >
> > >
> > > > numeric value of the Acceleration. This will apply the
> full Acceleration
> > >in ~
> > >
> > > >
> > > > 0.01 seconds which is similar to what happens in Mach3.
> > > >
> > > > TKÂÂÂ
> > > >
> >
>
>

--
Ferguson Windmills Company,
www.windmills.co.nz
Ph. 64 9 412 8655
027 282 7689
Group: DynoMotion Message: 699 From: Tom Kerekes Date: 10/5/2010
Subject: Re: Kflop / Kanalog
Hi Ross!
 
I've mostly integrated things into the firmware so a User program should no longer be required, but I have several more things to add.
 
Give me a bit more time and then if I could get you to test there will be new release.
 
Thanks
TK

Group: DynoMotion Message: 700 From: aeunson@btinternet.com Date: 10/5/2010
Subject: Re: Kflop / Kanalog
Hi Tom,

I dont have the Z axis conneted yet as I am still trying to source conectors for the Zservo motor.

I took out all reference to Z axis channel 2

When I ran the program the table still moved a small distance in a positive direction.

On the X Axis I am using I/p 136 & 137 so I tried (!ReadBit(8))
with and without the not function and the table still moved slightly positive. I also tried Jog(2,100)with the same results.

Its getting late here I will try again in the morning.

Regards

Art

--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Art,
>
> Yes that is the correct way to test.
>
> The SimpleHome3Axis.c program will have to be modified for your system.
>
> Probably the program is waiting for the wrong I/O bit as the home switch and/or
> the wrong polarity of the bit so it just thinks it immediatly saw the switch and
> did the small motion back inside.
>
> Look for the line of:
>
> while (!ReadBit(10)) ;  // loop until IO bit goes high
>
>
> This line means that "while Bit #10 is NOT true do nothing"
>
> The "!" symbol is the NOT operator in the C language.
>
> Change the value of 10 to whatever you system is wired as.  Also remove the NOT
> operator depending on your wiring.
>
> Make the appropriate changes for each axis.
>
> Regards
> TK
>
>
>
>
> ________________________________
> From: "aeunson@..." <aeunson@...>
> To: DynoMotion@yahoogroups.com
> Sent: Tue, October 5, 2010 4:07:43 PM
> Subject: [DynoMotion] Re: Kflop / Kanalog
>
>  
>
> Hi Tom
>
> That has cured the reset problem.
>
> I am not sure how to test the home program I opened it in the C program window
> and tried to run it but the table just gives a small movement on both axis. The
> table was no where near the switches.
>
> Is this the right way to test it?
>
> Regards
>
> Art
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Art,
> >
> > Attached is a newer firmware that should solve the communication problem after
> >a
> >
> > disable message.
> >
> > Copy it to the DSP_KFLOP directory and use the Config/Flash Screen to flash it
>
> > as a new Version.
> >
> > The Version command in the console should then report the firmware version as
> > 4.23B
> >
> > Yes the Ref All Home button can be made to work.  As well as homing to a limit
> >
> > switch.  But first Homing Programs must be created for your system.
> >
> > I've attached an example.  Please see if you understand it and if it works.
> >
> > After it is working properly we can merge the code into the HomeMach3.c so the
>
> > Mach3 Plugin Messages will execute the code.
> >
> > Regards
> > TK
> >
> >
> >
> > ________________________________
> > From: "aeunson@" <aeunson@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Tue, October 5, 2010 12:53:54 AM
> > Subject: [DynoMotion] Re: Kflop / Kanalog
> >
> >  
> > Hi Tom
> >
> > I have separate limits for each end on all axis and I was hoping to use one of
>
> > the as the home switch to0. Is this possible? I also have the axis set to
> > disallow drive into limit.
> > I am not sure how I would set the system up to automatically move the drive
> >back
> >
> > into limit. Anyway this will not work when I get the flash error when I try to
>
> > reset after the Y axis hits the limit.
> >
> > I was assuming that I could use one of the limits and configure the plugin mach
> >
> > to run the home program by using the ref all home button and it would home each
> >
> > axis.
> >
> > Regards
> >
> > Art
> >
> > From: Tom Kerekes [mailto:tk@]
> > Sent: 05 October 2010 12:52 AM
> > To: Arthur Eunson
> > Subject: Re: Flash error
> >
> > Hi Art,
> >
> > Well I think we need to come up with a scheme of getting out of the limit
> > without getting another limit error and disable. The simplest is if you have
> > separate limits and use disallow drive into limit. Otherwise your reset has to
>
> > leave limits disabled until you get back out of the limits. Or you can have
> > Reset automatically move back inside the limit before re-enabling limits.
> >
> > The creep issue is because it is really hard to command the Amps to move at
> > exactly zero velocity. If you can get the table to sit still by commanding some
> >
> > small + or - DAC count then that can be entered as a OutputOffset value for the
> >
> > axis. Otherwise you will need to wire up an amplifier disable signal and use a
>
> > KFlop "watchdog" program to disable the amplifiers whenever any axis is
> > disabled.
> >
> > Regards
> > TK
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Art,
> > >
> > > The line in your c program:
> > >
> > >     EnableAxisDest(0,ch1->Position);
> > >
> > > should be
> > >
> > >     EnableAxisDest(1,ch1->Position);
> > >
> > > Otherwise you are enabling axis 0 axis 1's position and never enabling axis 1
> >
> > > (Y).
> > >
> > > There is not really any point to defining limits and home inputs in
> >Mach3.  In
> >
> > >
> > > original Mach3 those were handled by the Parallel Port Kernel driver (which
> >is
> >
> >
> > > no longer used). 
> > >
> > >
> > > Limits must be configured in the KFlop configuration so they are monitored in
> >
> > > real-time.  Home inputs are also handled by a KFlop Homing program.
> > >
> > > Also Mach3 only likes "Pin" numbers less than 128.  To configure Mach
> >Inputs
> >
> > >for
> > >
> > > KFlop I/O numbers greater than or equal to 128, subtract 128 from the number
>
> > >and
> > >
> > > specify Port #2.
> > >
> > > Regards
> > > TK
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > ________________________________
> > > From: "aeunson@" <aeunson@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Sun, October 3, 2010 4:40:51 PM
> > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > >
> > >  
> > > Tom,
> > >
> > > Can you check the uploaded c program to see where I have gone wrong.
> > > I have added the Y axis and limit switches on x and Y axis.
> > > Set the motor tuning in Mach etc.
> > >
> > > When I run Mach I get a Y axis disabled.
> > >
> > > I also set up the limit and home I/Ps in Mach but they keep changing.
> > >
> > > I set the pins to:
> > > X+ 136
> > > x- 137
> > > x hme 136
> > > Y+ 138
> > > Y- 139
> > > Y home 138
> > >
> > > When I go back to the I/P screen they have changed to:
> > > X+ -120
> > > X- -119
> > > X home -120
> > > Y+ -118
> > > Y- -117
> > > Y home -118
> > >
> > > Best Regards
> > >
> > > Art
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Both.ÃÆ'‚  As I said, keep the Jerk 100X of the Acceleration.
> > > >
> > > > TK
> > > >
> > > >
> > > > ________________________________
> > > > From: "aeunson@" <aeunson@>
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Sat, October 2, 2010 3:28:31 PM
> > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > >
> > > > ÃÆ'‚ 
> > > > Thanks Tom,
> > > >
> > > > Do I reduce the acceleration or increase the jerk?
> > > >
> > > > regards
> > > >
> > > > Art
> > > >
> > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > >
> > > > > Hi Art,
> > > > >
> > > > > That looks very good.ÃÆ'Æ'‚ÃÆ'‚  Except the Acceleration limit
> >is basically
> >
> > >set to
> > >
> > > > > infinity so the max acceleration is limited by the Jerk (and the Max
> > > > >Velocity).ÃÆ'Æ'‚ÃÆ'‚ 
> > > > >
> > > > > It would take 500 seconds at the specified Jerk to reach the max
> > > >acceleration,
> > > >
> > > >
> > > > > but after a fraction of a second of ramping the acceleration the max
> > >velocity
> > >
> > > >
> > > > > would be exceeded.ÃÆ'Æ'‚ÃÆ'‚  This is fine for generating nice
> >smooth motion,
> >
> > >but
> > >
> > > >since
> > > >
> > > >
> > > > > Mach3 has no Jerk control that value of acceleration won't
> >work.ÃÆ'Æ'‚ÃÆ'‚ 
> >
> > >As you
> > >
> > > > >change
> > > > >
> > > > > the Acceleration keep the numeric value of the Jerk about 100X larger
> >than
> >
> >
> > > >the
> > > >
> > > >
> > > > > numeric value of the Acceleration.ÃÆ'Æ'‚ÃÆ'‚  This will apply
> >the full
> >
> > >Acceleration
> > >
> > > >in ~
> > > >
> > > > >
> > > > > 0.01 seconds which is similar to what happens in Mach3.
> > > > >
> > > > > TKÃÆ'Æ'‚ÃÆ'‚ 
> > > > >
> > >
> >
>
Group: DynoMotion Message: 701 From: Tom Kerekes Date: 10/5/2010
Subject: Re: Kflop / Kanalog
Hi Art,
 
KFlop doesn't have a problem with IO numbers 128 or larger so if you are using IO136 specify 136.
 
Strange that with and without the NOT they both immediately reversed.  One of them should have moved forever.
 
Maybe you didn't understand how to remove the NOT.  Did you try:
 
    while (!ReadBit(136)) ;  // loop until IO bit goes high
 
and
 
    while (ReadBit(136)) ;  // loop until IO bit goes low
??
 
Regards
TK
 

Group: DynoMotion Message: 702 From: aeunson@btinternet.com Date: 10/5/2010
Subject: Re: Kflop / Kanalog
Hi Tom

I just realised I was talking a lot of rubbish and it was only Mach that does not like the large I/O numbers.

Thats how I was removing the NOT but it did not have the correct IO numbers. I will try it again in the morning with the correct numbers

Regards

Art

--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Art,
>
> KFlop doesn't have a problem with IO numbers 128 or larger so if you are using
> IO136 specify 136.
>
> Strange that with and without the NOT they both immediately reversed.  One of
> them should have moved forever.
>
> Maybe you didn't understand how to remove the NOT.  Did you try:
>
>     while (!ReadBit(136)) ;  // loop until IO bit goes high
>  
> and
>
>     while (ReadBit(136)) ;  // loop until IO bit goes low
>
> ??
>
> Regards
> TK
>
>
>
>
> ________________________________
> From: "aeunson@..." <aeunson@...>
> To: DynoMotion@yahoogroups.com
> Sent: Tue, October 5, 2010 5:28:58 PM
> Subject: [DynoMotion] Re: Kflop / Kanalog
>
>  
> Hi Tom,
>
> I dont have the Z axis conneted yet as I am still trying to source conectors for
> the Zservo motor.
>
> I took out all reference to Z axis channel 2
>
> When I ran the program the table still moved a small distance in a positive
> direction.
>
> On the X Axis I am using I/p 136 & 137 so I tried (!ReadBit(8))
> with and without the not function and the table still moved slightly positive. I
> also tried Jog(2,100)with the same results.
>
> Its getting late here I will try again in the morning.
>
> Regards
>
> Art
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Art,
> >
> > Yes that is the correct way to test.
> >
> > The SimpleHome3Axis.c program will have to be modified for your system.
> >
> > Probably the program is waiting for the wrong I/O bit as the home switch and/or
> >
> > the wrong polarity of the bit so it just thinks it immediatly saw the switch
> >and
> >
> > did the small motion back inside.
> >
> > Look for the line of:
> >
> > while (!ReadBit(10)) ;  // loop until IO bit goes high
> >
> >
> > This line means that "while Bit #10 is NOT true do nothing"
> >
> > The "!" symbol is the NOT operator in the C language.
> >
> > Change the value of 10 to whatever you system is wired as.  Also remove the
> >NOT
> >
> > operator depending on your wiring.
> >
> > Make the appropriate changes for each axis.
> >
> > Regards
> > TK
> >
> >
> >
> >
> > ________________________________
> > From: "aeunson@" <aeunson@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Tue, October 5, 2010 4:07:43 PM
> > Subject: [DynoMotion] Re: Kflop / Kanalog
> >
> >  
> >
> > Hi Tom
> >
> > That has cured the reset problem.
> >
> > I am not sure how to test the home program I opened it in the C program window
>
> > and tried to run it but the table just gives a small movement on both axis. The
> >
> > table was no where near the switches.
> >
> > Is this the right way to test it?
> >
> > Regards
> >
> > Art
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Art,
> > >
> > > Attached is a newer firmware that should solve the communication problem
> >after
> >
> > >a
> > >
> > > disable message.
> > >
> > > Copy it to the DSP_KFLOP directory and use the Config/Flash Screen to flash
> >it
> >
> >
> > > as a new Version.
> > >
> > > The Version command in the console should then report the firmware version as
> >
> > > 4.23B
> > >
> > > Yes the Ref All Home button can be made to work.  As well as homing to a
> >limit
> >
> > >
> > > switch.  But first Homing Programs must be created for your system.
> > >
> > > I've attached an example.  Please see if you understand it and if it
> >works.
> > >
> > > After it is working properly we can merge the code into the HomeMach3.c so
> >the
> >
> >
> > > Mach3 Plugin Messages will execute the code.
> > >
> > > Regards
> > > TK
> > >
> > >
> > >
> > > ________________________________
> > > From: "aeunson@" <aeunson@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Tue, October 5, 2010 12:53:54 AM
> > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > >
> > >  
> > > Hi Tom
> > >
> > > I have separate limits for each end on all axis and I was hoping to use one
> >of
> >
> >
> > > the as the home switch to0. Is this possible? I also have the axis set to
> > > disallow drive into limit.
> > > I am not sure how I would set the system up to automatically move the drive
> > >back
> > >
> > > into limit. Anyway this will not work when I get the flash error when I try
> >to
> >
> >
> > > reset after the Y axis hits the limit.
> > >
> > > I was assuming that I could use one of the limits and configure the plugin
> >mach
> >
> > >
> > > to run the home program by using the ref all home button and it would home
> >each
> >
> > >
> > > axis.
> > >
> > > Regards
> > >
> > > Art
> > >
> > > From: Tom Kerekes [mailto:tk@]
> > > Sent: 05 October 2010 12:52 AM
> > > To: Arthur Eunson
> > > Subject: Re: Flash error
> > >
> > > Hi Art,
> > >
> > > Well I think we need to come up with a scheme of getting out of the limit
> > > without getting another limit error and disable. The simplest is if you have
>
> > > separate limits and use disallow drive into limit. Otherwise your reset has
> >to
> >
> >
> > > leave limits disabled until you get back out of the limits. Or you can have
> > > Reset automatically move back inside the limit before re-enabling limits.
> > >
> > > The creep issue is because it is really hard to command the Amps to move at
> > > exactly zero velocity. If you can get the table to sit still by commanding
> >some
> >
> > >
> > > small + or - DAC count then that can be entered as a OutputOffset value for
> >the
> >
> > >
> > > axis. Otherwise you will need to wire up an amplifier disable signal and use
> >a
> >
> >
> > > KFlop "watchdog" program to disable the amplifiers whenever any axis is
> > > disabled.
> > >
> > > Regards
> > > TK
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Art,
> > > >
> > > > TheÃÆ'‚ line in your c program:
> > > >
> > > > ÃÆ'‚ ÃÆ'‚ ÃÆ'‚  EnableAxisDest(0,ch1->Position);
> > > >
> > > > should be
> > > >
> > > > ÃÆ'‚ ÃÆ'‚ ÃÆ'‚  EnableAxisDest(1,ch1->Position);
> > > >
> > > > Otherwise you are enabling axis 0 axis 1's position and never enabling axis
> >1
> >
> > >
> > > > (Y).
> > > >
> > > > There is not really any point to defining limits and home inputs in
> > >Mach3.ÃÆ'‚  In
> > >
> > > >
> > > > original Mach3 those were handled by the Parallel Port Kernel driver (which
> >
> > >is
> > >
> > >
> > > > no longer used).ÃÆ'‚ 
> > > >
> > > >
> > > > Limits must be configured in the KFlop configuration so they are monitored
> >in
> >
> > >
> > > > real-time.ÃÆ'‚  Home inputs are also handled by a KFlop Homing
> program.
> > > >
> > > > Also Mach3 only likes "Pin" numbers less than 128.ÃÆ'‚  To configure
> >Mach
> >
> > >Inputs
> > >
> > > >for
> > > >
> > > > KFlop I/O numbers greater than or equal to 128, subtract 128 from the
> >number
> >
> >
> > > >and
> > > >
> > > > specify Port #2.
> > > >
> > > > Regards
> > > > TK
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > ________________________________
> > > > From: "aeunson@" <aeunson@>
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Sun, October 3, 2010 4:40:51 PM
> > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > >
> > > > ÃÆ'‚ 
> > > > Tom,
> > > >
> > > > Can you check the uploaded c program to see where I have gone wrong.
> > > > I have added the Y axis and limit switches on x and Y axis.
> > > > Set the motor tuning in Mach etc.
> > > >
> > > > When I run Mach I get a Y axis disabled.
> > > >
> > > > I also set up the limit and home I/Ps in Mach but they keep changing.
> > > >
> > > > I set the pins to:
> > > > X+ 136
> > > > x- 137
> > > > x hme 136
> > > > Y+ 138
> > > > Y- 139
> > > > Y home 138
> > > >
> > > > When I go back to the I/P screen they have changed to:
> > > > X+ -120
> > > > X- -119
> > > > X home -120
> > > > Y+ -118
> > > > Y- -117
> > > > Y home -118
> > > >
> > > > Best Regards
> > > >
> > > > Art
> > > >
> > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > >
> > > > > Both.ÃÆ'Æ'‚ÃÆ'‚  As I said, keep the Jerk 100X of the
> >Acceleration.
> > > > >
> > > > > TK
> > > > >
> > > > >
> > > > > ________________________________
> > > > > From: "aeunson@" <aeunson@>
> > > > > To: DynoMotion@yahoogroups.com
> > > > > Sent: Sat, October 2, 2010 3:28:31 PM
> > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > >
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > Thanks Tom,
> > > > >
> > > > > Do I reduce the acceleration or increase the jerk?
> > > > >
> > > > > regards
> > > > >
> > > > > Art
> > > > >
> > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > >
> > > > > > Hi Art,
> > > > > >
> > > > > > That looks very good.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Except
> >the Acceleration limit
> >
> > >is basically
> > >
> > > >set to
> > > >
> > > > > > infinity so the max acceleration is limited by the Jerk (and the Max
> > > > > >Velocity).ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > >
> > > > > > It would take 500 seconds at the specified Jerk to reach the max
> > > > >acceleration,
> > > > >
> > > > >
> > > > > > but after a fraction of a second of ramping the acceleration the max
> > > >velocity
> > > >
> > > > >
> > > > > > would be exceeded.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  This is
> >fine for generating nice
> >
> > >smooth motion,
> > >
> > > >but
> > > >
> > > > >since
> > > > >
> > > > >
> > > > > > Mach3 has no Jerk control that value of acceleration won't
> > >work.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > >
> > > >As you
> > > >
> > > > > >change
> > > > > >
> > > > > > the Acceleration keep the numeric value of the Jerk about 100X larger
> > >than
> > >
> > >
> > > > >the
> > > > >
> > > > >
> > > > > > numeric value of the
> >Acceleration.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  This will apply
> >
> > >the full
> > >
> > > >Acceleration
> > > >
> > > > >in ~
> > > > >
> > > > > >
> > > > > > 0.01 seconds which is similar to what happens in Mach3.
> > > > > >
> > > > > > TKÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > >
> > > >
> > >
> >
>
Group: DynoMotion Message: 705 From: aeunson@btinternet.com Date: 10/6/2010
Subject: Re: Kflop / Kanalog
Hi Tom

I have tried it with IO 136 with and without ! and there is no difference. (still small movement in positive direction)

I have also tried different rates of jog and also no difference.

Any idea what I am doing wrong?

Regards

Art

--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Art,
>
> KFlop doesn't have a problem with IO numbers 128 or larger so if you are using
> IO136 specify 136.
>
> Strange that with and without the NOT they both immediately reversed.  One of
> them should have moved forever.
>
> Maybe you didn't understand how to remove the NOT.  Did you try:
>
>     while (!ReadBit(136)) ;  // loop until IO bit goes high
>  
> and
>
>     while (ReadBit(136)) ;  // loop until IO bit goes low
>
> ??
>
> Regards
> TK
>
>
>
>
> ________________________________
> From: "aeunson@..." <aeunson@...>
> To: DynoMotion@yahoogroups.com
> Sent: Tue, October 5, 2010 5:28:58 PM
> Subject: [DynoMotion] Re: Kflop / Kanalog
>
>  
> Hi Tom,
>
> I dont have the Z axis conneted yet as I am still trying to source conectors for
> the Zservo motor.
>
> I took out all reference to Z axis channel 2
>
> When I ran the program the table still moved a small distance in a positive
> direction.
>
> On the X Axis I am using I/p 136 & 137 so I tried (!ReadBit(8))
> with and without the not function and the table still moved slightly positive. I
> also tried Jog(2,100)with the same results.
>
> Its getting late here I will try again in the morning.
>
> Regards
>
> Art
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Art,
> >
> > Yes that is the correct way to test.
> >
> > The SimpleHome3Axis.c program will have to be modified for your system.
> >
> > Probably the program is waiting for the wrong I/O bit as the home switch and/or
> >
> > the wrong polarity of the bit so it just thinks it immediatly saw the switch
> >and
> >
> > did the small motion back inside.
> >
> > Look for the line of:
> >
> > while (!ReadBit(10)) ;  // loop until IO bit goes high
> >
> >
> > This line means that "while Bit #10 is NOT true do nothing"
> >
> > The "!" symbol is the NOT operator in the C language.
> >
> > Change the value of 10 to whatever you system is wired as.  Also remove the
> >NOT
> >
> > operator depending on your wiring.
> >
> > Make the appropriate changes for each axis.
> >
> > Regards
> > TK
> >
> >
> >
> >
> > ________________________________
> > From: "aeunson@" <aeunson@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Tue, October 5, 2010 4:07:43 PM
> > Subject: [DynoMotion] Re: Kflop / Kanalog
> >
> >  
> >
> > Hi Tom
> >
> > That has cured the reset problem.
> >
> > I am not sure how to test the home program I opened it in the C program window
>
> > and tried to run it but the table just gives a small movement on both axis. The
> >
> > table was no where near the switches.
> >
> > Is this the right way to test it?
> >
> > Regards
> >
> > Art
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Art,
> > >
> > > Attached is a newer firmware that should solve the communication problem
> >after
> >
> > >a
> > >
> > > disable message.
> > >
> > > Copy it to the DSP_KFLOP directory and use the Config/Flash Screen to flash
> >it
> >
> >
> > > as a new Version.
> > >
> > > The Version command in the console should then report the firmware version as
> >
> > > 4.23B
> > >
> > > Yes the Ref All Home button can be made to work.  As well as homing to a
> >limit
> >
> > >
> > > switch.  But first Homing Programs must be created for your system.
> > >
> > > I've attached an example.  Please see if you understand it and if it
> >works.
> > >
> > > After it is working properly we can merge the code into the HomeMach3.c so
> >the
> >
> >
> > > Mach3 Plugin Messages will execute the code.
> > >
> > > Regards
> > > TK
> > >
> > >
> > >
> > > ________________________________
> > > From: "aeunson@" <aeunson@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Tue, October 5, 2010 12:53:54 AM
> > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > >
> > >  
> > > Hi Tom
> > >
> > > I have separate limits for each end on all axis and I was hoping to use one
> >of
> >
> >
> > > the as the home switch to0. Is this possible? I also have the axis set to
> > > disallow drive into limit.
> > > I am not sure how I would set the system up to automatically move the drive
> > >back
> > >
> > > into limit. Anyway this will not work when I get the flash error when I try
> >to
> >
> >
> > > reset after the Y axis hits the limit.
> > >
> > > I was assuming that I could use one of the limits and configure the plugin
> >mach
> >
> > >
> > > to run the home program by using the ref all home button and it would home
> >each
> >
> > >
> > > axis.
> > >
> > > Regards
> > >
> > > Art
> > >
> > > From: Tom Kerekes [mailto:tk@]
> > > Sent: 05 October 2010 12:52 AM
> > > To: Arthur Eunson
> > > Subject: Re: Flash error
> > >
> > > Hi Art,
> > >
> > > Well I think we need to come up with a scheme of getting out of the limit
> > > without getting another limit error and disable. The simplest is if you have
>
> > > separate limits and use disallow drive into limit. Otherwise your reset has
> >to
> >
> >
> > > leave limits disabled until you get back out of the limits. Or you can have
> > > Reset automatically move back inside the limit before re-enabling limits.
> > >
> > > The creep issue is because it is really hard to command the Amps to move at
> > > exactly zero velocity. If you can get the table to sit still by commanding
> >some
> >
> > >
> > > small + or - DAC count then that can be entered as a OutputOffset value for
> >the
> >
> > >
> > > axis. Otherwise you will need to wire up an amplifier disable signal and use
> >a
> >
> >
> > > KFlop "watchdog" program to disable the amplifiers whenever any axis is
> > > disabled.
> > >
> > > Regards
> > > TK
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Art,
> > > >
> > > > TheÃÆ'‚ line in your c program:
> > > >
> > > > ÃÆ'‚ ÃÆ'‚ ÃÆ'‚  EnableAxisDest(0,ch1->Position);
> > > >
> > > > should be
> > > >
> > > > ÃÆ'‚ ÃÆ'‚ ÃÆ'‚  EnableAxisDest(1,ch1->Position);
> > > >
> > > > Otherwise you are enabling axis 0 axis 1's position and never enabling axis
> >1
> >
> > >
> > > > (Y).
> > > >
> > > > There is not really any point to defining limits and home inputs in
> > >Mach3.ÃÆ'‚  In
> > >
> > > >
> > > > original Mach3 those were handled by the Parallel Port Kernel driver (which
> >
> > >is
> > >
> > >
> > > > no longer used).ÃÆ'‚ 
> > > >
> > > >
> > > > Limits must be configured in the KFlop configuration so they are monitored
> >in
> >
> > >
> > > > real-time.ÃÆ'‚  Home inputs are also handled by a KFlop Homing
> program.
> > > >
> > > > Also Mach3 only likes "Pin" numbers less than 128.ÃÆ'‚  To configure
> >Mach
> >
> > >Inputs
> > >
> > > >for
> > > >
> > > > KFlop I/O numbers greater than or equal to 128, subtract 128 from the
> >number
> >
> >
> > > >and
> > > >
> > > > specify Port #2.
> > > >
> > > > Regards
> > > > TK
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > ________________________________
> > > > From: "aeunson@" <aeunson@>
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Sun, October 3, 2010 4:40:51 PM
> > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > >
> > > > ÃÆ'‚ 
> > > > Tom,
> > > >
> > > > Can you check the uploaded c program to see where I have gone wrong.
> > > > I have added the Y axis and limit switches on x and Y axis.
> > > > Set the motor tuning in Mach etc.
> > > >
> > > > When I run Mach I get a Y axis disabled.
> > > >
> > > > I also set up the limit and home I/Ps in Mach but they keep changing.
> > > >
> > > > I set the pins to:
> > > > X+ 136
> > > > x- 137
> > > > x hme 136
> > > > Y+ 138
> > > > Y- 139
> > > > Y home 138
> > > >
> > > > When I go back to the I/P screen they have changed to:
> > > > X+ -120
> > > > X- -119
> > > > X home -120
> > > > Y+ -118
> > > > Y- -117
> > > > Y home -118
> > > >
> > > > Best Regards
> > > >
> > > > Art
> > > >
> > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > >
> > > > > Both.ÃÆ'Æ'‚ÃÆ'‚  As I said, keep the Jerk 100X of the
> >Acceleration.
> > > > >
> > > > > TK
> > > > >
> > > > >
> > > > > ________________________________
> > > > > From: "aeunson@" <aeunson@>
> > > > > To: DynoMotion@yahoogroups.com
> > > > > Sent: Sat, October 2, 2010 3:28:31 PM
> > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > >
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > Thanks Tom,
> > > > >
> > > > > Do I reduce the acceleration or increase the jerk?
> > > > >
> > > > > regards
> > > > >
> > > > > Art
> > > > >
> > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > >
> > > > > > Hi Art,
> > > > > >
> > > > > > That looks very good.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Except
> >the Acceleration limit
> >
> > >is basically
> > >
> > > >set to
> > > >
> > > > > > infinity so the max acceleration is limited by the Jerk (and the Max
> > > > > >Velocity).ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > >
> > > > > > It would take 500 seconds at the specified Jerk to reach the max
> > > > >acceleration,
> > > > >
> > > > >
> > > > > > but after a fraction of a second of ramping the acceleration the max
> > > >velocity
> > > >
> > > > >
> > > > > > would be exceeded.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  This is
> >fine for generating nice
> >
> > >smooth motion,
> > >
> > > >but
> > > >
> > > > >since
> > > > >
> > > > >
> > > > > > Mach3 has no Jerk control that value of acceleration won't
> > >work.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > >
> > > >As you
> > > >
> > > > > >change
> > > > > >
> > > > > > the Acceleration keep the numeric value of the Jerk about 100X larger
> > >than
> > >
> > >
> > > > >the
> > > > >
> > > > >
> > > > > > numeric value of the
> >Acceleration.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  This will apply
> >
> > >the full
> > >
> > > >Acceleration
> > > >
> > > > >in ~
> > > > >
> > > > > >
> > > > > > 0.01 seconds which is similar to what happens in Mach3.
> > > > > >
> > > > > > TKÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > >
> > > >
> > >
> >
>
Group: DynoMotion Message: 706 From: Tom Kerekes Date: 10/6/2010
Subject: Re: Kflop / Kanalog
Art,
 
Let's try something even simpler:
 
TK
 
 
 
#include "KMotionDef.h"
main()
{
    Jog(0,-1000);           // start moving
    while (!ReadBit(136)) ; // wait for switch (input) to change
    Jog(0,0);               // stop
}


Group: DynoMotion Message: 707 From: aeunson@btinternet.com Date: 10/6/2010
Subject: Re: Kflop / Kanalog
Hi Tom,
I get this error:

C:\KMotion422\C Programs\user2.c:1: unrecognized character \xa0

When I run the simple program. Wish I could understand this.

Regards

Art

--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Art,
>  
> Let's try something even simpler:
>  
> TK
>  
>  
>  
> #include "KMotionDef.h"
> main()
> {
>     Jog(0,-1000);           // start moving
>     while (!ReadBit(136)) ; // wait for switch (input) to change
>     Jog(0,0);               // stop
> }
>
>
>
>
>
> ________________________________
> From: "aeunson@..." <aeunson@...>
> To: DynoMotion@yahoogroups.com
> Sent: Wed, October 6, 2010 11:34:06 AM
> Subject: [DynoMotion] Re: Kflop / Kanalog
>
>  
> Hi Tom
>
> I have tried it with IO 136 with and without ! and there is no difference.
> (still small movement in positive direction)
>
> I have also tried different rates of jog and also no difference.
>
> Any idea what I am doing wrong?
>
> Regards
>
> Art
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Art,
> >
> > KFlop doesn't have a problem with IO numbers 128 or larger so if you are using
>
> > IO136 specify 136.
> >
> > Strange that with and without the NOT they both immediately reversed.  One of
>
> > them should have moved forever.
> >
> > Maybe you didn't understand how to remove the NOT.  Did you try:
> >
> >     while (!ReadBit(136)) ;  // loop until IO bit goes high
> >  
> > and
> >
> >     while (ReadBit(136)) ;  // loop until IO bit goes low
> >
> > ??
> >
> > Regards
> > TK
> >
> >
> >
> >
> > ________________________________
> > From: "aeunson@" <aeunson@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Tue, October 5, 2010 5:28:58 PM
> > Subject: [DynoMotion] Re: Kflop / Kanalog
> >
> >  
> > Hi Tom,
> >
> > I dont have the Z axis conneted yet as I am still trying to source conectors
> >for
> >
> > the Zservo motor.
> >
> > I took out all reference to Z axis channel 2
> >
> > When I ran the program the table still moved a small distance in a positive
> > direction.
> >
> > On the X Axis I am using I/p 136 & 137 so I tried (!ReadBit(8))
> > with and without the not function and the table still moved slightly positive.
> >I
> >
> > also tried Jog(2,100)with the same results.
> >
> > Its getting late here I will try again in the morning.
> >
> > Regards
> >
> > Art
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Art,
> > >
> > > Yes that is the correct way to test.
> > >
> > > The SimpleHome3Axis.c program will have to be modified for your system.
> > >
> > > Probably the program is waiting for the wrong I/O bit as the home switch
> >and/or
> >
> > >
> > > the wrong polarity of the bit so it just thinks it immediatly saw the switch
>
> > >and
> > >
> > > did the small motion back inside.
> > >
> > > Look for the line of:
> > >
> > > while (!ReadBit(10)) ;  // loop until IO bit goes high
> > >
> > >
> > > This line means that "while Bit #10 is NOT true do nothing"
> > >
> > > The "!" symbol is the NOT operator in the C language.
> > >
> > > Change the value of 10 to whatever you system is wired as.  Also remove
> >the
> >
> > >NOT
> > >
> > > operator depending on your wiring.
> > >
> > > Make the appropriate changes for each axis.
> > >
> > > Regards
> > > TK
> > >
> > >
> > >
> > >
> > > ________________________________
> > > From: "aeunson@" <aeunson@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Tue, October 5, 2010 4:07:43 PM
> > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > >
> > >  
> > >
> > > Hi Tom
> > >
> > > That has cured the reset problem.
> > >
> > > I am not sure how to test the home program I opened it in the C program
> >window
> >
> >
> > > and tried to run it but the table just gives a small movement on both axis.
> >The
> >
> > >
> > > table was no where near the switches.
> > >
> > > Is this the right way to test it?
> > >
> > > Regards
> > >
> > > Art
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Hi Art,
> > > >
> > > > Attached is a newer firmware that should solve the communication problem
> > >after
> > >
> > > >a
> > > >
> > > > disable message.
> > > >
> > > > Copy it to the DSP_KFLOP directory and use the Config/Flash Screen to flash
> >
> > >it
> > >
> > >
> > > > as a new Version.
> > > >
> > > > The Version command in the console should then report the firmware version
> >as
> >
> > >
> > > > 4.23B
> > > >
> > > > Yes the Ref All Home button can be made to work.ÃÆ'‚  As well as homing
> >to a
> >
> > >limit
> > >
> > > >
> > > > switch.ÃÆ'‚  But first Homing Programs must be created for your
> system.
> > > >
> > > > I've attached an example.ÃÆ'‚  Please see if you understand it and if
> >it
> >
> > >works.
> > > >
> > > > After it is working properly we can merge the code into the HomeMach3.c so
>
> > >the
> > >
> > >
> > > > Mach3 Plugin Messages will execute the code.
> > > >
> > > > Regards
> > > > TK
> > > >
> > > >
> > > >
> > > > ________________________________
> > > > From: "aeunson@" <aeunson@>
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Tue, October 5, 2010 12:53:54 AM
> > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > >
> > > > ÃÆ'‚ 
> > > > Hi Tom
> > > >
> > > > I have separate limits for each end on all axis and I was hoping to use one
> >
> > >of
> > >
> > >
> > > > the as the home switch to0. Is this possible? I also have the axis set to
> > > > disallow drive into limit.
> > > > I am not sure how I would set the system up to automatically move the drive
> >
> > > >back
> > > >
> > > > into limit. Anyway this will not work when I get the flash error when I try
> >
> > >to
> > >
> > >
> > > > reset after the Y axis hits the limit.
> > > >
> > > > I was assuming that I could use one of the limits and configure the plugin
>
> > >mach
> > >
> > > >
> > > > to run the home program by using the ref all home button and it would home
>
> > >each
> > >
> > > >
> > > > axis.
> > > >
> > > > Regards
> > > >
> > > > Art
> > > >
> > > > From: Tom Kerekes [mailto:tk@]
> > > > Sent: 05 October 2010 12:52 AM
> > > > To: Arthur Eunson
> > > > Subject: Re: Flash error
> > > >
> > > > Hi Art,
> > > >
> > > > Well I think we need to come up with a scheme of getting out of the limit
> > > > without getting another limit error and disable. The simplest is if you
> >have
> >
> >
> > > > separate limits and use disallow drive into limit. Otherwise your reset has
> >
> > >to
> > >
> > >
> > > > leave limits disabled until you get back out of the limits. Or you can have
> >
> > > > Reset automatically move back inside the limit before re-enabling limits.
> > > >
> > > > The creep issue is because it is really hard to command the Amps to move at
> >
> > > > exactly zero velocity. If you can get the table to sit still by commanding
>
> > >some
> > >
> > > >
> > > > small + or - DAC count then that can be entered as a OutputOffset value for
> >
> > >the
> > >
> > > >
> > > > axis. Otherwise you will need to wire up an amplifier disable signal and
> >use
> >
> > >a
> > >
> > >
> > > > KFlop "watchdog" program to disable the amplifiers whenever any axis is
> > > > disabled.
> > > >
> > > > Regards
> > > > TK
> > > >
> > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > >
> > > > > Art,
> > > > >
> > > > > TheÃÆ'Æ'‚ÃÆ'‚ line in your c program:
> > > > >
> > > > > ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'‚ÃÆ'‚ 
> >EnableAxisDest(0,ch1->Position);
> > > > >
> > > > > should be
> > > > >
> > > > > ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'‚ÃÆ'‚ 
> >EnableAxisDest(1,ch1->Position);
> > > > >
> > > > > Otherwise you are enabling axis 0 axis 1's position and never enabling
> >axis
> >
> > >1
> > >
> > > >
> > > > > (Y).
> > > > >
> > > > > There is not really any point to defining limits and home inputs in
> > > >Mach3.ÃÆ'Æ'‚ÃÆ'‚  In
> > > >
> > > > >
> > > > > original Mach3 those were handled by the Parallel Port Kernel driver
> >(which
> >
> > >
> > > >is
> > > >
> > > >
> > > > > no longer used).ÃÆ'Æ'‚ÃÆ'‚ 
> > > > >
> > > > >
> > > > > Limits must be configured in the KFlop configuration so they are
> >monitored
> >
> > >in
> > >
> > > >
> > > > > real-time.ÃÆ'Æ'‚ÃÆ'‚  Home inputs are also handled by a KFlop
> >Homing
> >
> > program.
> > > > >
> > > > > Also Mach3 only likes "Pin" numbers less than 128.ÃÆ'Æ'‚ÃÆ'‚  To
> >configure
> >
> > >Mach
> > >
> > > >Inputs
> > > >
> > > > >for
> > > > >
> > > > > KFlop I/O numbers greater than or equal to 128, subtract 128 from the
> > >number
> > >
> > >
> > > > >and
> > > > >
> > > > > specify Port #2.
> > > > >
> > > > > Regards
> > > > > TK
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > ________________________________
> > > > > From: "aeunson@" <aeunson@>
> > > > > To: DynoMotion@yahoogroups.com
> > > > > Sent: Sun, October 3, 2010 4:40:51 PM
> > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > >
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > Tom,
> > > > >
> > > > > Can you check the uploaded c program to see where I have gone wrong.
> > > > > I have added the Y axis and limit switches on x and Y axis.
> > > > > Set the motor tuning in Mach etc.
> > > > >
> > > > > When I run Mach I get a Y axis disabled.
> > > > >
> > > > > I also set up the limit and home I/Ps in Mach but they keep changing.
> > > > >
> > > > > I set the pins to:
> > > > > X+ 136
> > > > > x- 137
> > > > > x hme 136
> > > > > Y+ 138
> > > > > Y- 139
> > > > > Y home 138
> > > > >
> > > > > When I go back to the I/P screen they have changed to:
> > > > > X+ -120
> > > > > X- -119
> > > > > X home -120
> > > > > Y+ -118
> > > > > Y- -117
> > > > > Y home -118
> > > > >
> > > > > Best Regards
> > > > >
> > > > > Art
> > > > >
> > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > >
> > > > > > Both.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  As I said, keep the
> >Jerk 100X of the
> >
> > >Acceleration.
> > > > > >
> > > > > > TK
> > > > > >
> > > > > >
> > > > > > ________________________________
> > > > > > From: "aeunson@" <aeunson@>
> > > > > > To: DynoMotion@yahoogroups.com
> > > > > > Sent: Sat, October 2, 2010 3:28:31 PM
> > > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > > >
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > Thanks Tom,
> > > > > >
> > > > > > Do I reduce the acceleration or increase the jerk?
> > > > > >
> > > > > > regards
> > > > > >
> > > > > > Art
> > > > > >
> > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > >
> > > > > > > Hi Art,
> > > > > > >
> > > > > > > That looks very
> >good.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > Except
> >
> > >the Acceleration limit
> > >
> > > >is basically
> > > >
> > > > >set to
> > > > >
> > > > > > > infinity so the max acceleration is limited by the Jerk (and the Max
>
> > > > > >
> >>Velocity).ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> >
> > > > > > >
> > > > > > > It would take 500 seconds at the specified Jerk to reach the max
> > > > > >acceleration,
> > > > > >
> > > > > >
> > > > > > > but after a fraction of a second of ramping the acceleration the max
>
> > > > >velocity
> > > > >
> > > > > >
> > > > > > > would be
> >exceeded.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > This is
> >
> > >fine for generating nice
> > >
> > > >smooth motion,
> > > >
> > > > >but
> > > > >
> > > > > >since
> > > > > >
> > > > > >
> > > > > > > Mach3 has no Jerk control that value of acceleration won't
> > >
> >>work.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> >
> > > >
> > > > >As you
> > > > >
> > > > > > >change
> > > > > > >
> > > > > > > the Acceleration keep the numeric value of the Jerk about 100X larger
> >
> > > >than
> > > >
> > > >
> > > > > >the
> > > > > >
> > > > > >
> > > > > > > numeric value of the
> >>Acceleration.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> >  This will apply
> >
> > >
> > > >the full
> > > >
> > > > >Acceleration
> > > > >
> > > > > >in ~
> > > > > >
> > > > > > >
> > > > > > > 0.01 seconds which is similar to what happens in Mach3.
> > > > > > >
> > > > > > >
> >TKÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> >
> > > > > > >
> > > > >
> > > >
> > >
> >
>
Group: DynoMotion Message: 708 From: Tom Kerekes Date: 10/6/2010
Subject: Re: Kflop / Kanalog
Attachments :
Hi Art,
 
Maybe the email is adding odd characters?
 
I've attached the file.
 
Hang in there we'll get it eventually :}
 
TK

Group: DynoMotion Message: 709 From: aeunson@btinternet.com Date: 10/6/2010
Subject: Re: Kflop / Kanalog
Hi Tom

That cured the compile error but the table does not even twitch now.

It still works in Mach and step and response though.

Regards

Art

--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Art,
>
> Maybe the email is adding odd characters?
>
> I've attached the file.
>
> Hang in there we'll get it eventually :}
>
> TK
>
>
>
>
> ________________________________
> From: "aeunson@..." <aeunson@...>
> To: DynoMotion@yahoogroups.com
> Sent: Wed, October 6, 2010 3:13:39 PM
> Subject: [DynoMotion] Re: Kflop / Kanalog
>
>  
> Hi Tom,
> I get this error:
>
> C:\KMotion422\C Programs\user2.c:1: unrecognized character \xa0
>
> When I run the simple program. Wish I could understand this.
>
> Regards
>
> Art
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Art,
> >  
> > Let's try something even simpler:
> >  
> > TK
> >  
> >  
> >  
> > #include "KMotionDef.h"
> > main()
> > {
> >     Jog(0,-1000);           // start moving
> >     while (!ReadBit(136)) ; // wait for switch (input) to change
> >     Jog(0,0);               // stop
> > }
> >
> >
> >
> >
> >
> > ________________________________
> > From: "aeunson@" <aeunson@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Wed, October 6, 2010 11:34:06 AM
> > Subject: [DynoMotion] Re: Kflop / Kanalog
> >
> >  
> > Hi Tom
> >
> > I have tried it with IO 136 with and without ! and there is no difference.
> > (still small movement in positive direction)
> >
> > I have also tried different rates of jog and also no difference.
> >
> > Any idea what I am doing wrong?
> >
> > Regards
> >
> > Art
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Art,
> > >
> > > KFlop doesn't have a problem with IO numbers 128 or larger so if you are
> >using
> >
> >
> > > IO136 specify 136.
> > >
> > > Strange that with and without the NOT they both immediately reversed.  One
> >of
> >
> >
> > > them should have moved forever.
> > >
> > > Maybe you didn't understand how to remove the NOT.  Did you try:
> > >
> > >     while (!ReadBit(136)) ;  // loop until IO bit goes high
> > >  
> > > and
> > >
> > >     while (ReadBit(136)) ;  // loop until IO bit goes low
> > >
> > > ??
> > >
> > > Regards
> > > TK
> > >
> > >
> > >
> > >
> > > ________________________________
> > > From: "aeunson@" <aeunson@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Tue, October 5, 2010 5:28:58 PM
> > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > >
> > >  
> > > Hi Tom,
> > >
> > > I dont have the Z axis conneted yet as I am still trying to source conectors
>
> > >for
> > >
> > > the Zservo motor.
> > >
> > > I took out all reference to Z axis channel 2
> > >
> > > When I ran the program the table still moved a small distance in a positive
> > > direction.
> > >
> > > On the X Axis I am using I/p 136 & 137 so I tried (!ReadBit(8))
> > > with and without the not function and the table still moved slightly
> >positive.
> >
> > >I
> > >
> > > also tried Jog(2,100)with the same results.
> > >
> > > Its getting late here I will try again in the morning.
> > >
> > > Regards
> > >
> > > Art
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Hi Art,
> > > >
> > > > Yes that is the correct way to test.
> > > >
> > > > The SimpleHome3Axis.c program will have to be modified for your system.
> > > >
> > > > Probably the program is waiting for the wrong I/O bit as the home switch
> > >and/or
> > >
> > > >
> > > > the wrong polarity of the bit so it just thinks it immediatly saw the
> >switch
> >
> >
> > > >and
> > > >
> > > > did the small motion back inside.
> > > >
> > > > Look for the line of:
> > > >
> > > > while (!ReadBit(10)) ;ÃÆ'‚  // loop until IO bit goes high
> > > >
> > > >
> > > > This line means that "while Bit #10 is NOT true do nothing"
> > > >
> > > > The "!" symbol is the NOT operator in the C language.
> > > >
> > > > Change the value of 10 to whatever you system is wired as.ÃÆ'‚  Also
> >remove
> >
> > >the
> > >
> > > >NOT
> > > >
> > > > operator depending on your wiring.
> > > >
> > > > Make the appropriate changes for each axis.
> > > >
> > > > Regards
> > > > TK
> > > >
> > > >
> > > >
> > > >
> > > > ________________________________
> > > > From: "aeunson@" <aeunson@>
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Tue, October 5, 2010 4:07:43 PM
> > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > >
> > > > ÃÆ'‚ 
> > > >
> > > > Hi Tom
> > > >
> > > > That has cured the reset problem.
> > > >
> > > > I am not sure how to test the home program I opened it in the C program
> > >window
> > >
> > >
> > > > and tried to run it but the table just gives a small movement on both axis.
> >
> > >The
> > >
> > > >
> > > > table was no where near the switches.
> > > >
> > > > Is this the right way to test it?
> > > >
> > > > Regards
> > > >
> > > > Art
> > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > >
> > > > > Hi Art,
> > > > >
> > > > > Attached is a newer firmware that should solve the communication problem
>
> > > >after
> > > >
> > > > >a
> > > > >
> > > > > disable message.
> > > > >
> > > > > Copy it to the DSP_KFLOP directory and use the Config/Flash Screen to
> >flash
> >
> > >
> > > >it
> > > >
> > > >
> > > > > as a new Version.
> > > > >
> > > > > The Version command in the console should then report the firmware
> >version
> >
> > >as
> > >
> > > >
> > > > > 4.23B
> > > > >
> > > > > Yes the Ref All Home button can be made to work.ÃÆ'Æ'‚ÃÆ'‚  As
> >well as homing
> >
> > >to a
> > >
> > > >limit
> > > >
> > > > >
> > > > > switch.ÃÆ'Æ'‚ÃÆ'‚  But first Homing Programs must be created for
> >your
> >
> > system.
> > > > >
> > > > > I've attached an example.ÃÆ'Æ'‚ÃÆ'‚  Please see if you
> >understand it and if
> >
> > >it
> > >
> > > >works.
> > > > >
> > > > > After it is working properly we can merge the code into the HomeMach3.c
> >so
> >
> >
> > > >the
> > > >
> > > >
> > > > > Mach3 Plugin Messages will execute the code.
> > > > >
> > > > > Regards
> > > > > TK
> > > > >
> > > > >
> > > > >
> > > > > ________________________________
> > > > > From: "aeunson@" <aeunson@>
> > > > > To: DynoMotion@yahoogroups.com
> > > > > Sent: Tue, October 5, 2010 12:53:54 AM
> > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > >
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > Hi Tom
> > > > >
> > > > > I have separate limits for each end on all axis and I was hoping to use
> >one
> >
> > >
> > > >of
> > > >
> > > >
> > > > > the as the home switch to0. Is this possible? I also have the axis set to
> >
> > > > > disallow drive into limit.
> > > > > I am not sure how I would set the system up to automatically move the
> >drive
> >
> > >
> > > > >back
> > > > >
> > > > > into limit. Anyway this will not work when I get the flash error when I
> >try
> >
> > >
> > > >to
> > > >
> > > >
> > > > > reset after the Y axis hits the limit.
> > > > >
> > > > > I was assuming that I could use one of the limits and configure the
> >plugin
> >
> >
> > > >mach
> > > >
> > > > >
> > > > > to run the home program by using the ref all home button and it would
> >home
> >
> >
> > > >each
> > > >
> > > > >
> > > > > axis.
> > > > >
> > > > > Regards
> > > > >
> > > > > Art
> > > > >
> > > > > From: Tom Kerekes [mailto:tk@]
> > > > > Sent: 05 October 2010 12:52 AM
> > > > > To: Arthur Eunson
> > > > > Subject: Re: Flash error
> > > > >
> > > > > Hi Art,
> > > > >
> > > > > Well I think we need to come up with a scheme of getting out of the limit
> >
> > > > > without getting another limit error and disable. The simplest is if you
> > >have
> > >
> > >
> > > > > separate limits and use disallow drive into limit. Otherwise your reset
> >has
> >
> > >
> > > >to
> > > >
> > > >
> > > > > leave limits disabled until you get back out of the limits. Or you can
> >have
> >
> > >
> > > > > Reset automatically move back inside the limit before re-enabling
> limits.
> > > > >
> > > > > The creep issue is because it is really hard to command the Amps to move
> >at
> >
> > >
> > > > > exactly zero velocity. If you can get the table to sit still by
> >commanding
> >
> >
> > > >some
> > > >
> > > > >
> > > > > small + or - DAC count then that can be entered as a OutputOffset value
> >for
> >
> > >
> > > >the
> > > >
> > > > >
> > > > > axis. Otherwise you will need to wire up an amplifier disable signal and
>
> > >use
> > >
> > > >a
> > > >
> > > >
> > > > > KFlop "watchdog" program to disable the amplifiers whenever any axis is
> > > > > disabled.
> > > > >
> > > > > Regards
> > > > > TK
> > > > >
> > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > >
> > > > > > Art,
> > > > > >
> > > > > > TheÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ line in your c program:
> > > > > >
> > > > > >
> >ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> >
> > >EnableAxisDest(0,ch1->Position);
> > > > > >
> > > > > > should be
> > > > > >
> > > > > >
> >ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> >
> > >EnableAxisDest(1,ch1->Position);
> > > > > >
> > > > > > Otherwise you are enabling axis 0 axis 1's position and never enabling
>
> > >axis
> > >
> > > >1
> > > >
> > > > >
> > > > > > (Y).
> > > > > >
> > > > > > There is not really any point to defining limits and home inputs in
> > > > >Mach3.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  In
> > > > >
> > > > > >
> > > > > > original Mach3 those were handled by the Parallel Port Kernel driver
> > >(which
> > >
> > > >
> > > > >is
> > > > >
> > > > >
> > > > > > no longer used).ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > >
> > > > > >
> > > > > > Limits must be configured in the KFlop configuration so they are
> > >monitored
> > >
> > > >in
> > > >
> > > > >
> > > > > > real-time.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Home inputs are
> >also handled by a KFlop
> >
> > >Homing
> > >
> > > program.
> > > > > >
> > > > > > Also Mach3 only likes "Pin" numbers less than
> >128.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  To
> >
> > >configure
> > >
> > > >Mach
> > > >
> > > > >Inputs
> > > > >
> > > > > >for
> > > > > >
> > > > > > KFlop I/O numbers greater than or equal to 128, subtract 128 from the
> > > >number
> > > >
> > > >
> > > > > >and
> > > > > >
> > > > > > specify Port #2.
> > > > > >
> > > > > > Regards
> > > > > > TK
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > ________________________________
> > > > > > From: "aeunson@" <aeunson@>
> > > > > > To: DynoMotion@yahoogroups.com
> > > > > > Sent: Sun, October 3, 2010 4:40:51 PM
> > > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > > >
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > Tom,
> > > > > >
> > > > > > Can you check the uploaded c program to see where I have gone wrong.
> > > > > > I have added the Y axis and limit switches on x and Y axis.
> > > > > > Set the motor tuning in Mach etc.
> > > > > >
> > > > > > When I run Mach I get a Y axis disabled.
> > > > > >
> > > > > > I also set up the limit and home I/Ps in Mach but they keep changing.
> > > > > >
> > > > > > I set the pins to:
> > > > > > X+ 136
> > > > > > x- 137
> > > > > > x hme 136
> > > > > > Y+ 138
> > > > > > Y- 139
> > > > > > Y home 138
> > > > > >
> > > > > > When I go back to the I/P screen they have changed to:
> > > > > > X+ -120
> > > > > > X- -119
> > > > > > X home -120
> > > > > > Y+ -118
> > > > > > Y- -117
> > > > > > Y home -118
> > > > > >
> > > > > > Best Regards
> > > > > >
> > > > > > Art
> > > > > >
> > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > >
> > > > > > >
> >Both.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > As I said, keep the
> >
> > >Jerk 100X of the
> > >
> > > >Acceleration.
> > > > > > >
> > > > > > > TK
> > > > > > >
> > > > > > >
> > > > > > > ________________________________
> > > > > > > From: "aeunson@" <aeunson@>
> > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > Sent: Sat, October 2, 2010 3:28:31 PM
> > > > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > > > >
> > > > > > >
> >ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> >
> > > > > > > Thanks Tom,
> > > > > > >
> > > > > > > Do I reduce the acceleration or increase the jerk?
> > > > > > >
> > > > > > > regards
> > > > > > >
> > > > > > > Art
> > > > > > >
> > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > >
> > > > > > > > Hi Art,
> > > > > > > >
> > > > > > > > That looks very
> >>good.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > Except
> > >
> > > >the Acceleration limit
> > > >
> > > > >is basically
> > > > >
> > > > > >set to
> > > > > >
> > > > > > > > infinity so the max acceleration is limited by the Jerk (and the
> >Max
> >
> >
> > > > > > >
> >>>Velocity).ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > >
> > > > > > > >
> > > > > > > > It would take 500 seconds at the specified Jerk to reach the max
> > > > > > >acceleration,
> > > > > > >
> > > > > > >
> > > > > > > > but after a fraction of a second of ramping the acceleration the
> >max
> >
> >
> > > > > >velocity
> > > > > >
> > > > > > >
> > > > > > > > would be
> >>exceeded.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > This is
> > >
> > > >fine for generating nice
> > > >
> > > > >smooth motion,
> > > > >
> > > > > >but
> > > > > >
> > > > > > >since
> > > > > > >
> > > > > > >
> > > > > > > > Mach3 has no Jerk control that value of acceleration won't
> > > >
> >>>work.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > >
> > > > >
> > > > > >As you
> > > > > >
> > > > > > > >change
> > > > > > > >
> > > > > > > > the Acceleration keep the numeric value of the Jerk about 100X
> >larger
> >
> > >
> > > > >than
> > > > >
> > > > >
> > > > > > >the
> > > > > > >
> > > > > > >
> > > > > > > > numeric value of the
> >>>Acceleration.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > >  This will apply
> > >
> > > >
> > > > >the full
> > > > >
> > > > > >Acceleration
> > > > > >
> > > > > > >in ~
> > > > > > >
> > > > > > > >
> > > > > > > > 0.01 seconds which is similar to what happens in Mach3.
> > > > > > > >
> > > > > > > >
> >>TKÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > >
> > > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
Group: DynoMotion Message: 710 From: Tom Kerekes Date: 10/6/2010
Subject: Re: Kflop / Kanalog
Hi Art,
 
Did you try waiting for the other polarity of the bit?  (remove the "!")?
 
TK

Group: DynoMotion Message: 711 From: aeunson@btinternet.com Date: 10/6/2010
Subject: Re: Kflop / Kanalog
Hi Tom

Yes I should have mentioned that

Art

--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Art,
>
> Did you try waiting for the other polarity of the bit?  (remove the "!")?
>
> TK
>
>
>
>
> ________________________________
> From: "aeunson@..." <aeunson@...>
> To: DynoMotion@yahoogroups.com
> Sent: Wed, October 6, 2010 3:36:50 PM
> Subject: [DynoMotion] Re: Kflop / Kanalog
>
>  
> Hi Tom
>
> That cured the compile error but the table does not even twitch now.
>
> It still works in Mach and step and response though.
>
> Regards
>
> Art
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Art,
> >
> > Maybe the email is adding odd characters?
> >
> > I've attached the file.
> >
> > Hang in there we'll get it eventually :}
> >
> > TK
> >
> >
> >
> >
> > ________________________________
> > From: "aeunson@" <aeunson@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Wed, October 6, 2010 3:13:39 PM
> > Subject: [DynoMotion] Re: Kflop / Kanalog
> >
> >  
> > Hi Tom,
> > I get this error:
> >
> > C:\KMotion422\C Programs\user2.c:1: unrecognized character \xa0
> >
> > When I run the simple program. Wish I could understand this.
> >
> > Regards
> >
> > Art
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Art,
> > >  
> > > Let's try something even simpler:
> > >  
> > > TK
> > >  
> > >  
> > >  
> > > #include "KMotionDef.h"
> > > main()
> > > {
> > >     Jog(0,-1000);           // start
> >moving
> > >     while (!ReadBit(136)) ; // wait for switch (input) to change
> > >    
> >Jog(0,0);               // stop
> > > }
> > >
> > >
> > >
> > >
> > >
> > > ________________________________
> > > From: "aeunson@" <aeunson@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Wed, October 6, 2010 11:34:06 AM
> > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > >
> > >  
> > > Hi Tom
> > >
> > > I have tried it with IO 136 with and without ! and there is no difference.
> > > (still small movement in positive direction)
> > >
> > > I have also tried different rates of jog and also no difference.
> > >
> > > Any idea what I am doing wrong?
> > >
> > > Regards
> > >
> > > Art
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Hi Art,
> > > >
> > > > KFlop doesn't have a problem with IO numbers 128 or larger so if you are
> > >using
> > >
> > >
> > > > IO136 specify 136.
> > > >
> > > > Strange that with and without the NOT they both immediately
> >reversed.ÃÆ'‚  One
> >
> > >of
> > >
> > >
> > > > them should have moved forever.
> > > >
> > > > Maybe you didn't understand how to remove the NOT.ÃÆ'‚  Did you try:
> > > >
> > > > ÃÆ'‚ ÃÆ'‚ ÃÆ'‚  while (!ReadBit(136)) ;ÃÆ'‚  // loop until
> >IO bit goes high
> > > > ÃÆ'‚ 
> > > > and
> > > >
> > > > ÃÆ'‚ ÃÆ'‚ ÃÆ'‚  while (ReadBit(136)) ;ÃÆ'‚  // loop until
> >IO bit goes low
> > > >
> > > > ??
> > > >
> > > > Regards
> > > > TK
> > > >
> > > >
> > > >
> > > >
> > > > ________________________________
> > > > From: "aeunson@" <aeunson@>
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Tue, October 5, 2010 5:28:58 PM
> > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > >
> > > > ÃÆ'‚ 
> > > > Hi Tom,
> > > >
> > > > I dont have the Z axis conneted yet as I am still trying to source
> >conectors
> >
> >
> > > >for
> > > >
> > > > the Zservo motor.
> > > >
> > > > I took out all reference to Z axis channel 2
> > > >
> > > > When I ran the program the table still moved a small distance in a positive
> >
> > > > direction.
> > > >
> > > > On the X Axis I am using I/p 136 & 137 so I tried (!ReadBit(8))
> > > > with and without the not function and the table still moved slightly
> > >positive.
> > >
> > > >I
> > > >
> > > > also tried Jog(2,100)with the same results.
> > > >
> > > > Its getting late here I will try again in the morning.
> > > >
> > > > Regards
> > > >
> > > > Art
> > > >
> > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > >
> > > > > Hi Art,
> > > > >
> > > > > Yes that is the correct way to test.
> > > > >
> > > > > The SimpleHome3Axis.c program will have to be modified for your system.
> > > > >
> > > > > Probably the program is waiting for the wrong I/O bit as the home switch
>
> > > >and/or
> > > >
> > > > >
> > > > > the wrong polarity of the bit so it just thinks it immediatly saw the
> > >switch
> > >
> > >
> > > > >and
> > > > >
> > > > > did the small motion back inside.
> > > > >
> > > > > Look for the line of:
> > > > >
> > > > > while (!ReadBit(10)) ;ÃÆ'Æ'‚ÃÆ'‚  // loop until IO bit goes
> high
> > > > >
> > > > >
> > > > > This line means that "while Bit #10 is NOT true do nothing"
> > > > >
> > > > > The "!" symbol is the NOT operator in the C language.
> > > > >
> > > > > Change the value of 10 to whatever you system is wired
> >as.ÃÆ'Æ'‚ÃÆ'‚  Also
> >
> > >remove
> > >
> > > >the
> > > >
> > > > >NOT
> > > > >
> > > > > operator depending on your wiring.
> > > > >
> > > > > Make the appropriate changes for each axis.
> > > > >
> > > > > Regards
> > > > > TK
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > ________________________________
> > > > > From: "aeunson@" <aeunson@>
> > > > > To: DynoMotion@yahoogroups.com
> > > > > Sent: Tue, October 5, 2010 4:07:43 PM
> > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > >
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > >
> > > > > Hi Tom
> > > > >
> > > > > That has cured the reset problem.
> > > > >
> > > > > I am not sure how to test the home program I opened it in the C program
> > > >window
> > > >
> > > >
> > > > > and tried to run it but the table just gives a small movement on both
> >axis.
> >
> > >
> > > >The
> > > >
> > > > >
> > > > > table was no where near the switches.
> > > > >
> > > > > Is this the right way to test it?
> > > > >
> > > > > Regards
> > > > >
> > > > > Art
> > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > >
> > > > > > Hi Art,
> > > > > >
> > > > > > Attached is a newer firmware that should solve the communication
> >problem
> >
> >
> > > > >after
> > > > >
> > > > > >a
> > > > > >
> > > > > > disable message.
> > > > > >
> > > > > > Copy it to the DSP_KFLOP directory and use the Config/Flash Screen to
> > >flash
> > >
> > > >
> > > > >it
> > > > >
> > > > >
> > > > > > as a new Version.
> > > > > >
> > > > > > The Version command in the console should then report the firmware
> > >version
> > >
> > > >as
> > > >
> > > > >
> > > > > > 4.23B
> > > > > >
> > > > > > Yes the Ref All Home button can be made to
> >work.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  As
> >
> > >well as homing
> > >
> > > >to a
> > > >
> > > > >limit
> > > > >
> > > > > >
> > > > > > switch.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  But first Homing
> >Programs must be created for
> >
> > >your
> > >
> > > system.
> > > > > >
> > > > > > I've attached an example.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> >Please see if you
> >
> > >understand it and if
> > >
> > > >it
> > > >
> > > > >works.
> > > > > >
> > > > > > After it is working properly we can merge the code into the HomeMach3.c
> >
> > >so
> > >
> > >
> > > > >the
> > > > >
> > > > >
> > > > > > Mach3 Plugin Messages will execute the code.
> > > > > >
> > > > > > Regards
> > > > > > TK
> > > > > >
> > > > > >
> > > > > >
> > > > > > ________________________________
> > > > > > From: "aeunson@" <aeunson@>
> > > > > > To: DynoMotion@yahoogroups.com
> > > > > > Sent: Tue, October 5, 2010 12:53:54 AM
> > > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > > >
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > Hi Tom
> > > > > >
> > > > > > I have separate limits for each end on all axis and I was hoping to use
> >
> > >one
> > >
> > > >
> > > > >of
> > > > >
> > > > >
> > > > > > the as the home switch to0. Is this possible? I also have the axis set
> >to
> >
> > >
> > > > > > disallow drive into limit.
> > > > > > I am not sure how I would set the system up to automatically move the
> > >drive
> > >
> > > >
> > > > > >back
> > > > > >
> > > > > > into limit. Anyway this will not work when I get the flash error when I
> >
> > >try
> > >
> > > >
> > > > >to
> > > > >
> > > > >
> > > > > > reset after the Y axis hits the limit.
> > > > > >
> > > > > > I was assuming that I could use one of the limits and configure the
> > >plugin
> > >
> > >
> > > > >mach
> > > > >
> > > > > >
> > > > > > to run the home program by using the ref all home button and it would
> > >home
> > >
> > >
> > > > >each
> > > > >
> > > > > >
> > > > > > axis.
> > > > > >
> > > > > > Regards
> > > > > >
> > > > > > Art
> > > > > >
> > > > > > From: Tom Kerekes [mailto:tk@]
> > > > > > Sent: 05 October 2010 12:52 AM
> > > > > > To: Arthur Eunson
> > > > > > Subject: Re: Flash error
> > > > > >
> > > > > > Hi Art,
> > > > > >
> > > > > > Well I think we need to come up with a scheme of getting out of the
> >limit
> >
> > >
> > > > > > without getting another limit error and disable. The simplest is if you
> >
> > > >have
> > > >
> > > >
> > > > > > separate limits and use disallow drive into limit. Otherwise your reset
> >
> > >has
> > >
> > > >
> > > > >to
> > > > >
> > > > >
> > > > > > leave limits disabled until you get back out of the limits. Or you can
>
> > >have
> > >
> > > >
> > > > > > Reset automatically move back inside the limit before re-enabling
> > limits.
> > > > > >
> > > > > > The creep issue is because it is really hard to command the Amps to
> >move
> >
> > >at
> > >
> > > >
> > > > > > exactly zero velocity. If you can get the table to sit still by
> > >commanding
> > >
> > >
> > > > >some
> > > > >
> > > > > >
> > > > > > small + or - DAC count then that can be entered as a OutputOffset value
> >
> > >for
> > >
> > > >
> > > > >the
> > > > >
> > > > > >
> > > > > > axis. Otherwise you will need to wire up an amplifier disable signal
> >and
> >
> >
> > > >use
> > > >
> > > > >a
> > > > >
> > > > >
> > > > > > KFlop "watchdog" program to disable the amplifiers whenever any axis is
> >
> > > > > > disabled.
> > > > > >
> > > > > > Regards
> > > > > > TK
> > > > > >
> > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > >
> > > > > > > Art,
> > > > > > >
> > > > > > >
> >TheÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ line
> > in your c program:
> > > > > > >
> > > > > > >
> >>ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > >
> > > >EnableAxisDest(0,ch1->Position);
> > > > > > >
> > > > > > > should be
> > > > > > >
> > > > > > >
> >>ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > >
> > > >EnableAxisDest(1,ch1->Position);
> > > > > > >
> > > > > > > Otherwise you are enabling axis 0 axis 1's position and never
> >enabling
> >
> >
> > > >axis
> > > >
> > > > >1
> > > > >
> > > > > >
> > > > > > > (Y).
> > > > > > >
> > > > > > > There is not really any point to defining limits and home inputs in
> > > > >
> >>Mach3.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > In
> >
> > > > > >
> > > > > > >
> > > > > > > original Mach3 those were handled by the Parallel Port Kernel driver
>
> > > >(which
> > > >
> > > > >
> > > > > >is
> > > > > >
> > > > > >
> > > > > > > no longer
> >used).ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> >
> > > > > > >
> > > > > > >
> > > > > > > Limits must be configured in the KFlop configuration so they are
> > > >monitored
> > > >
> > > > >in
> > > > >
> > > > > >
> > > > > > >
> >real-time.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > Home inputs are
> >
> > >also handled by a KFlop
> > >
> > > >Homing
> > > >
> > > > program.
> > > > > > >
> > > > > > > Also Mach3 only likes "Pin" numbers less than
> >>128.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> >  To
> >
> > >
> > > >configure
> > > >
> > > > >Mach
> > > > >
> > > > > >Inputs
> > > > > >
> > > > > > >for
> > > > > > >
> > > > > > > KFlop I/O numbers greater than or equal to 128, subtract 128 from the
> >
> > > > >number
> > > > >
> > > > >
> > > > > > >and
> > > > > > >
> > > > > > > specify Port #2.
> > > > > > >
> > > > > > > Regards
> > > > > > > TK
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > ________________________________
> > > > > > > From: "aeunson@" <aeunson@>
> > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > Sent: Sun, October 3, 2010 4:40:51 PM
> > > > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > > > >
> > > > > > >
> >ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> >
> > > > > > > Tom,
> > > > > > >
> > > > > > > Can you check the uploaded c program to see where I have gone wrong.
> > > > > > > I have added the Y axis and limit switches on x and Y axis.
> > > > > > > Set the motor tuning in Mach etc.
> > > > > > >
> > > > > > > When I run Mach I get a Y axis disabled.
> > > > > > >
> > > > > > > I also set up the limit and home I/Ps in Mach but they keep
> changing.
> > > > > > >
> > > > > > > I set the pins to:
> > > > > > > X+ 136
> > > > > > > x- 137
> > > > > > > x hme 136
> > > > > > > Y+ 138
> > > > > > > Y- 139
> > > > > > > Y home 138
> > > > > > >
> > > > > > > When I go back to the I/P screen they have changed to:
> > > > > > > X+ -120
> > > > > > > X- -119
> > > > > > > X home -120
> > > > > > > Y+ -118
> > > > > > > Y- -117
> > > > > > > Y home -118
> > > > > > >
> > > > > > > Best Regards
> > > > > > >
> > > > > > > Art
> > > > > > >
> > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > >
> > > > > > > >
> >>Both.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > As I said, keep the
> > >
> > > >Jerk 100X of the
> > > >
> > > > >Acceleration.
> > > > > > > >
> > > > > > > > TK
> > > > > > > >
> > > > > > > >
> > > > > > > > ________________________________
> > > > > > > > From: "aeunson@" <aeunson@>
> > > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > > Sent: Sat, October 2, 2010 3:28:31 PM
> > > > > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > > > > >
> > > > > > > >
> >>ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > >
> > > > > > > > Thanks Tom,
> > > > > > > >
> > > > > > > > Do I reduce the acceleration or increase the jerk?
> > > > > > > >
> > > > > > > > regards
> > > > > > > >
> > > > > > > > Art
> > > > > > > >
> > > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > >
> > > > > > > > > Hi Art,
> > > > > > > > >
> > > > > > > > > That looks very
> >>>good.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > 
> > > > Except
> > > >
> > > > >the Acceleration limit
> > > > >
> > > > > >is basically
> > > > > >
> > > > > > >set to
> > > > > > >
> > > > > > > > > infinity so the max acceleration is limited by the Jerk (and the
>
> > >Max
> > >
> > >
> > > > > > > >
> >>>>Velocity).ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > 
> > > >
> > > > > > > > >
> > > > > > > > > It would take 500 seconds at the specified Jerk to reach the max
>
> > > > > > > >acceleration,
> > > > > > > >
> > > > > > > >
> > > > > > > > > but after a fraction of a second of ramping the acceleration the
>
> > >max
> > >
> > >
> > > > > > >velocity
> > > > > > >
> > > > > > > >
> > > > > > > > > would be
> >>>exceeded.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > 
> > > > This is
> > > >
> > > > >fine for generating nice
> > > > >
> > > > > >smooth motion,
> > > > > >
> > > > > > >but
> > > > > > >
> > > > > > > >since
> > > > > > > >
> > > > > > > >
> > > > > > > > > Mach3 has no Jerk control that value of acceleration won't
> > > > >
> >>>>work.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > 
> > > >
> > > > > >
> > > > > > >As you
> > > > > > >
> > > > > > > > >change
> > > > > > > > >
> > > > > > > > > the Acceleration keep the numeric value of the Jerk about 100X
> > >larger
> > >
> > > >
> > > > > >than
> > > > > >
> > > > > >
> > > > > > > >the
> > > > > > > >
> > > > > > > >
> > > > > > > > > numeric value of the
> >>>>Acceleration.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > 
> > > >  This will apply
> > > >
> > > > >
> > > > > >the full
> > > > > >
> > > > > > >Acceleration
> > > > > > >
> > > > > > > >in ~
> > > > > > > >
> > > > > > > > >
> > > > > > > > > 0.01 seconds which is similar to what happens in Mach3.
> > > > > > > > >
> > > > > > > > >
> >>>TKÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > 
> > > >
> > > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
Group: DynoMotion Message: 712 From: Tom Kerekes Date: 10/6/2010
Subject: Re: Kflop / Kanalog
Hi Art,
 
Strange.  As a sanity check, let's replace the while loop with a simple one second delay like:
 
    Delay_sec(1.0);
does axis 0 move for 1 second and then stop?
 
TK

Group: DynoMotion Message: 713 From: aeunson@btinternet.com Date: 10/6/2010
Subject: Re: Kflop / Kanalog
Hi Tom,

Nope does ot move.

Regards

Art

--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Art,
>
> Strange.  As a sanity check, let's replace the while loop with a simple one
> second delay like:
>
>     Delay_sec(1.0);
>
> does axis 0 move for 1 second and then stop?
>
> TK
>
>
>
>
> ________________________________
> From: "aeunson@..." <aeunson@...>
> To: DynoMotion@yahoogroups.com
> Sent: Wed, October 6, 2010 3:58:43 PM
> Subject: [DynoMotion] Re: Kflop / Kanalog
>
>  
> Hi Tom
>
> Yes I should have mentioned that
>
> Art
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Art,
> >
> > Did you try waiting for the other polarity of the bit?  (remove the "!")?
> >
> > TK
> >
> >
> >
> >
> > ________________________________
> > From: "aeunson@" <aeunson@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Wed, October 6, 2010 3:36:50 PM
> > Subject: [DynoMotion] Re: Kflop / Kanalog
> >
> >  
> > Hi Tom
> >
> > That cured the compile error but the table does not even twitch now.
> >
> > It still works in Mach and step and response though.
> >
> > Regards
> >
> > Art
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Art,
> > >
> > > Maybe the email is adding odd characters?
> > >
> > > I've attached the file.
> > >
> > > Hang in there we'll get it eventually :}
> > >
> > > TK
> > >
> > >
> > >
> > >
> > > ________________________________
> > > From: "aeunson@" <aeunson@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Wed, October 6, 2010 3:13:39 PM
> > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > >
> > >  
> > > Hi Tom,
> > > I get this error:
> > >
> > > C:\KMotion422\C Programs\user2.c:1: unrecognized character \xa0
> > >
> > > When I run the simple program. Wish I could understand this.
> > >
> > > Regards
> > >
> > > Art
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Art,
> > > > ÃÆ'‚ 
> > > > Let's try something even simpler:
> > > > ÃÆ'‚ 
> > > > TK
> > > > ÃÆ'‚ 
> > > > ÃÆ'‚ 
> > > > ÃÆ'‚ 
> > > > #include "KMotionDef.h"
> > > > main()
> > > > {
> > > > ÃÆ'‚ ÃÆ'‚ ÃÆ'‚ 
> >Jog(0,-1000);ÃÆ'‚ ÃÆ'‚ ÃÆ'‚ ÃÆ'‚ ÃÆ'‚ ÃÆ'‚ ÃÆ'‚ ÃÆ'‚ ÃÆ'‚ ÃÆ'‚ 
> > // start
> >
> > >moving
> > > > ÃÆ'‚ ÃÆ'‚ ÃÆ'‚  while (!ReadBit(136)) ; // wait for switch
> >(input) to change
> > > > ÃÆ'‚ ÃÆ'‚ ÃÆ'‚ 
> >>Jog(0,0);ÃÆ'‚ ÃÆ'‚ ÃÆ'‚ ÃÆ'‚ ÃÆ'‚ ÃÆ'‚ ÃÆ'‚ ÃÆ'‚ ÃÆ'‚ ÃÆ'‚ ÃÆ'‚ ÃÆ'‚ ÃÆ'‚ ÃÆ'‚ 
> >  // stop
> > > > }
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > ________________________________
> > > > From: "aeunson@" <aeunson@>
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Wed, October 6, 2010 11:34:06 AM
> > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > >
> > > > ÃÆ'‚ 
> > > > Hi Tom
> > > >
> > > > I have tried it with IO 136 with and without ! and there is no difference.
>
> > > > (still small movement in positive direction)
> > > >
> > > > I have also tried different rates of jog and also no difference.
> > > >
> > > > Any idea what I am doing wrong?
> > > >
> > > > Regards
> > > >
> > > > Art
> > > >
> > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > >
> > > > > Hi Art,
> > > > >
> > > > > KFlop doesn't have a problem with IO numbers 128 or larger so if you are
>
> > > >using
> > > >
> > > >
> > > > > IO136 specify 136.
> > > > >
> > > > > Strange that with and without the NOT they both immediately
> > >reversed.ÃÆ'Æ'‚ÃÆ'‚  One
> > >
> > > >of
> > > >
> > > >
> > > > > them should have moved forever.
> > > > >
> > > > > Maybe you didn't understand how to remove the NOT.ÃÆ'Æ'‚ÃÆ'‚ 
> >Did you try:
> > > > >
> > > > > ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'‚ÃÆ'‚  while
> >(!ReadBit(136)) ;ÃÆ'Æ'‚ÃÆ'‚  // loop until
> >
> > >IO bit goes high
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > and
> > > > >
> > > > > ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'‚ÃÆ'‚  while
> >(ReadBit(136)) ;ÃÆ'Æ'‚ÃÆ'‚  // loop until
> >
> > >IO bit goes low
> > > > >
> > > > > ??
> > > > >
> > > > > Regards
> > > > > TK
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > ________________________________
> > > > > From: "aeunson@" <aeunson@>
> > > > > To: DynoMotion@yahoogroups.com
> > > > > Sent: Tue, October 5, 2010 5:28:58 PM
> > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > >
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > Hi Tom,
> > > > >
> > > > > I dont have the Z axis conneted yet as I am still trying to source
> > >conectors
> > >
> > >
> > > > >for
> > > > >
> > > > > the Zservo motor.
> > > > >
> > > > > I took out all reference to Z axis channel 2
> > > > >
> > > > > When I ran the program the table still moved a small distance in a
> >positive
> >
> > >
> > > > > direction.
> > > > >
> > > > > On the X Axis I am using I/p 136 & 137 so I tried (!ReadBit(8))
> > > > > with and without the not function and the table still moved slightly
> > > >positive.
> > > >
> > > > >I
> > > > >
> > > > > also tried Jog(2,100)with the same results.
> > > > >
> > > > > Its getting late here I will try again in the morning.
> > > > >
> > > > > Regards
> > > > >
> > > > > Art
> > > > >
> > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > >
> > > > > > Hi Art,
> > > > > >
> > > > > > Yes that is the correct way to test.
> > > > > >
> > > > > > The SimpleHome3Axis.c program will have to be modified for your
> system.
> > > > > >
> > > > > > Probably the program is waiting for the wrong I/O bit as the home
> >switch
> >
> >
> > > > >and/or
> > > > >
> > > > > >
> > > > > > the wrong polarity of the bit so it just thinks it immediatly saw the
> > > >switch
> > > >
> > > >
> > > > > >and
> > > > > >
> > > > > > did the small motion back inside.
> > > > > >
> > > > > > Look for the line of:
> > > > > >
> > > > > > while (!ReadBit(10)) ;ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  //
> >loop until IO bit goes
> >
> > high
> > > > > >
> > > > > >
> > > > > > This line means that "while Bit #10 is NOT true do nothing"
> > > > > >
> > > > > > The "!" symbol is the NOT operator in the C language.
> > > > > >
> > > > > > Change the value of 10 to whatever you system is wired
> > >as.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Also
> > >
> > > >remove
> > > >
> > > > >the
> > > > >
> > > > > >NOT
> > > > > >
> > > > > > operator depending on your wiring.
> > > > > >
> > > > > > Make the appropriate changes for each axis.
> > > > > >
> > > > > > Regards
> > > > > > TK
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > ________________________________
> > > > > > From: "aeunson@" <aeunson@>
> > > > > > To: DynoMotion@yahoogroups.com
> > > > > > Sent: Tue, October 5, 2010 4:07:43 PM
> > > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > > >
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > >
> > > > > > Hi Tom
> > > > > >
> > > > > > That has cured the reset problem.
> > > > > >
> > > > > > I am not sure how to test the home program I opened it in the C program
> >
> > > > >window
> > > > >
> > > > >
> > > > > > and tried to run it but the table just gives a small movement on both
> > >axis.
> > >
> > > >
> > > > >The
> > > > >
> > > > > >
> > > > > > table was no where near the switches.
> > > > > >
> > > > > > Is this the right way to test it?
> > > > > >
> > > > > > Regards
> > > > > >
> > > > > > Art
> > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > >
> > > > > > > Hi Art,
> > > > > > >
> > > > > > > Attached is a newer firmware that should solve the communication
> > >problem
> > >
> > >
> > > > > >after
> > > > > >
> > > > > > >a
> > > > > > >
> > > > > > > disable message.
> > > > > > >
> > > > > > > Copy it to the DSP_KFLOP directory and use the Config/Flash Screen to
> >
> > > >flash
> > > >
> > > > >
> > > > > >it
> > > > > >
> > > > > >
> > > > > > > as a new Version.
> > > > > > >
> > > > > > > The Version command in the console should then report the firmware
> > > >version
> > > >
> > > > >as
> > > > >
> > > > > >
> > > > > > > 4.23B
> > > > > > >
> > > > > > > Yes the Ref All Home button can be made to
> >>work.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> >  As
> >
> > >
> > > >well as homing
> > > >
> > > > >to a
> > > > >
> > > > > >limit
> > > > > >
> > > > > > >
> > > > > > >
> >switch.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > But first Homing
> >
> > >Programs must be created for
> > >
> > > >your
> > > >
> > > > system.
> > > > > > >
> > > > > > > I've attached an
> >example.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> >
> > >Please see if you
> > >
> > > >understand it and if
> > > >
> > > > >it
> > > > >
> > > > > >works.
> > > > > > >
> > > > > > > After it is working properly we can merge the code into the
> >HomeMach3.c
> >
> > >
> > > >so
> > > >
> > > >
> > > > > >the
> > > > > >
> > > > > >
> > > > > > > Mach3 Plugin Messages will execute the code.
> > > > > > >
> > > > > > > Regards
> > > > > > > TK
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > ________________________________
> > > > > > > From: "aeunson@" <aeunson@>
> > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > Sent: Tue, October 5, 2010 12:53:54 AM
> > > > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > > > >
> > > > > > >
> >ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> >
> > > > > > > Hi Tom
> > > > > > >
> > > > > > > I have separate limits for each end on all axis and I was hoping to
> >use
> >
> > >
> > > >one
> > > >
> > > > >
> > > > > >of
> > > > > >
> > > > > >
> > > > > > > the as the home switch to0. Is this possible? I also have the axis
> >set
> >
> > >to
> > >
> > > >
> > > > > > > disallow drive into limit.
> > > > > > > I am not sure how I would set the system up to automatically move the
> >
> > > >drive
> > > >
> > > > >
> > > > > > >back
> > > > > > >
> > > > > > > into limit. Anyway this will not work when I get the flash error when
> >I
> >
> > >
> > > >try
> > > >
> > > > >
> > > > > >to
> > > > > >
> > > > > >
> > > > > > > reset after the Y axis hits the limit.
> > > > > > >
> > > > > > > I was assuming that I could use one of the limits and configure the
> > > >plugin
> > > >
> > > >
> > > > > >mach
> > > > > >
> > > > > > >
> > > > > > > to run the home program by using the ref all home button and it would
> >
> > > >home
> > > >
> > > >
> > > > > >each
> > > > > >
> > > > > > >
> > > > > > > axis.
> > > > > > >
> > > > > > > Regards
> > > > > > >
> > > > > > > Art
> > > > > > >
> > > > > > > From: Tom Kerekes [mailto:tk@]
> > > > > > > Sent: 05 October 2010 12:52 AM
> > > > > > > To: Arthur Eunson
> > > > > > > Subject: Re: Flash error
> > > > > > >
> > > > > > > Hi Art,
> > > > > > >
> > > > > > > Well I think we need to come up with a scheme of getting out of the
> > >limit
> > >
> > > >
> > > > > > > without getting another limit error and disable. The simplest is if
> >you
> >
> > >
> > > > >have
> > > > >
> > > > >
> > > > > > > separate limits and use disallow drive into limit. Otherwise your
> >reset
> >
> > >
> > > >has
> > > >
> > > > >
> > > > > >to
> > > > > >
> > > > > >
> > > > > > > leave limits disabled until you get back out of the limits. Or you
> >can
> >
> >
> > > >have
> > > >
> > > > >
> > > > > > > Reset automatically move back inside the limit before re-enabling
> > > limits.
> > > > > > >
> > > > > > > The creep issue is because it is really hard to command the Amps to
> > >move
> > >
> > > >at
> > > >
> > > > >
> > > > > > > exactly zero velocity. If you can get the table to sit still by
> > > >commanding
> > > >
> > > >
> > > > > >some
> > > > > >
> > > > > > >
> > > > > > > small + or - DAC count then that can be entered as a OutputOffset
> >value
> >
> > >
> > > >for
> > > >
> > > > >
> > > > > >the
> > > > > >
> > > > > > >
> > > > > > > axis. Otherwise you will need to wire up an amplifier disable signal
>
> > >and
> > >
> > >
> > > > >use
> > > > >
> > > > > >a
> > > > > >
> > > > > >
> > > > > > > KFlop "watchdog" program to disable the amplifiers whenever any axis
> >is
> >
> > >
> > > > > > > disabled.
> > > > > > >
> > > > > > > Regards
> > > > > > > TK
> > > > > > >
> > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > >
> > > > > > > > Art,
> > > > > > > >
> > > > > > > >
> >>TheÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ line
> >e
> > > in your c program:
> > > > > > > >
> > > > > > > >
> >>>ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ
> '¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > 
> > > >
> > > > >EnableAxisDest(0,ch1->Position);
> > > > > > > >
> > > > > > > > should be
> > > > > > > >
> > > > > > > >
> >>>ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ
> '¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > 
> > > >
> > > > >EnableAxisDest(1,ch1->Position);
> > > > > > > >
> > > > > > > > Otherwise you are enabling axis 0 axis 1's position and never
> > >enabling
> > >
> > >
> > > > >axis
> > > > >
> > > > > >1
> > > > > >
> > > > > > >
> > > > > > > > (Y).
> > > > > > > >
> > > > > > > > There is not really any point to defining limits and home inputs in
> >
> > > > > >
> >>>Mach3.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > In
> > >
> > > > > > >
> > > > > > > >
> > > > > > > > original Mach3 those were handled by the Parallel Port Kernel
> >driver
> >
> >
> > > > >(which
> > > > >
> > > > > >
> > > > > > >is
> > > > > > >
> > > > > > >
> > > > > > > > no longer
> >>used).ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > >
> > > > > > > >
> > > > > > > >
> > > > > > > > Limits must be configured in the KFlop configuration so they are
> > > > >monitored
> > > > >
> > > > > >in
> > > > > >
> > > > > > >
> > > > > > > >
> >>real-time.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > Home inputs are
> > >
> > > >also handled by a KFlop
> > > >
> > > > >Homing
> > > > >
> > > > > program.
> > > > > > > >
> > > > > > > > Also Mach3 only likes "Pin" numbers less than
> >>>128.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > >  To
> > >
> > > >
> > > > >configure
> > > > >
> > > > > >Mach
> > > > > >
> > > > > > >Inputs
> > > > > > >
> > > > > > > >for
> > > > > > > >
> > > > > > > > KFlop I/O numbers greater than or equal to 128, subtract 128 from
> >the
> >
> > >
> > > > > >number
> > > > > >
> > > > > >
> > > > > > > >and
> > > > > > > >
> > > > > > > > specify Port #2.
> > > > > > > >
> > > > > > > > Regards
> > > > > > > > TK
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > ________________________________
> > > > > > > > From: "aeunson@" <aeunson@>
> > > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > > Sent: Sun, October 3, 2010 4:40:51 PM
> > > > > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > > > > >
> > > > > > > >
> >>ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > >
> > > > > > > > Tom,
> > > > > > > >
> > > > > > > > Can you check the uploaded c program to see where I have gone
> >wrong.
> > > > > > > > I have added the Y axis and limit switches on x and Y axis.
> > > > > > > > Set the motor tuning in Mach etc.
> > > > > > > >
> > > > > > > > When I run Mach I get a Y axis disabled.
> > > > > > > >
> > > > > > > > I also set up the limit and home I/Ps in Mach but they keep
> > changing.
> > > > > > > >
> > > > > > > > I set the pins to:
> > > > > > > > X+ 136
> > > > > > > > x- 137
> > > > > > > > x hme 136
> > > > > > > > Y+ 138
> > > > > > > > Y- 139
> > > > > > > > Y home 138
> > > > > > > >
> > > > > > > > When I go back to the I/P screen they have changed to:
> > > > > > > > X+ -120
> > > > > > > > X- -119
> > > > > > > > X home -120
> > > > > > > > Y+ -118
> > > > > > > > Y- -117
> > > > > > > > Y home -118
> > > > > > > >
> > > > > > > > Best Regards
> > > > > > > >
> > > > > > > > Art
> > > > > > > >
> > > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > >
> > > > > > > > >
> >>>Both.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > 
> > > > As I said, keep the
> > > >
> > > > >Jerk 100X of the
> > > > >
> > > > > >Acceleration.
> > > > > > > > >
> > > > > > > > > TK
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > ________________________________
> > > > > > > > > From: "aeunson@" <aeunson@>
> > > > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > > > Sent: Sat, October 2, 2010 3:28:31 PM
> > > > > > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > > > > > >
> > > > > > > > >
> >>>ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > 
> > > >
> > > > > > > > > Thanks Tom,
> > > > > > > > >
> > > > > > > > > Do I reduce the acceleration or increase the jerk?
> > > > > > > > >
> > > > > > > > > regards
> > > > > > > > >
> > > > > > > > > Art
> > > > > > > > >
> > > > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > > >
> > > > > > > > > > Hi Art,
> > > > > > > > > >
> > > > > > > > > > That looks very
> >>>>good.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚Â
> ¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > 
> > > > 
> > > > > Except
> > > > >
> > > > > >the Acceleration limit
> > > > > >
> > > > > > >is basically
> > > > > > >
> > > > > > > >set to
> > > > > > > >
> > > > > > > > > > infinity so the max acceleration is limited by the Jerk (and
> >the
> >
> >
> > > >Max
> > > >
> > > >
> > > > > > > > >
> >>>>>Velocity).ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚
> ¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > 
> > > > 
> > > > >
> > > > > > > > > >
> > > > > > > > > > It would take 500 seconds at the specified Jerk to reach the
> >max
> >
> >
> > > > > > > > >acceleration,
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > > but after a fraction of a second of ramping the acceleration
> >the
> >
> >
> > > >max
> > > >
> > > >
> > > > > > > >velocity
> > > > > > > >
> > > > > > > > >
> > > > > > > > > > would be
> >>>>exceeded.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚Ã
> ‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > 
> > > > 
> > > > > This is
> > > > >
> > > > > >fine for generating nice
> > > > > >
> > > > > > >smooth motion,
> > > > > > >
> > > > > > > >but
> > > > > > > >
> > > > > > > > >since
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > > Mach3 has no Jerk control that value of acceleration won't
> > > > > >
> >>>>>work.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚Â
> ¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > 
> > > > 
> > > > >
> > > > > > >
> > > > > > > >As you
> > > > > > > >
> > > > > > > > > >change
> > > > > > > > > >
> > > > > > > > > > the Acceleration keep the numeric value of the Jerk about 100X
>
> > > >larger
> > > >
> > > > >
> > > > > > >than
> > > > > > >
> > > > > > >
> > > > > > > > >the
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > > numeric value of the
> >>>>>Acceleration.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'â
> €šÃ‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > 
> > > > 
> > > > >ÃÆ'‚  This will apply
> > > > >
> > > > > >
> > > > > > >the full
> > > > > > >
> > > > > > > >Acceleration
> > > > > > > >
> > > > > > > > >in ~
> > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > 0.01 seconds which is similar to what happens in Mach3.
> > > > > > > > > >
> > > > > > > > > >
> >>>>TKÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢
> ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > 
> > > > 
> > > > >
> > > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
Group: DynoMotion Message: 714 From: Tom Kerekes Date: 10/6/2010
Subject: Re: Kflop / Kanalog
Hi Art
 
The axis is configured and enabled correct?
 
If you type Jog0=-1000 on the console does the axis move?
 
TK

Group: DynoMotion Message: 715 From: aeunson@btinternet.com Date: 10/7/2010
Subject: Re: Kflop / Kanalog
Hi Tom

Yes the axis moves to limit and returns the message:
Neg limit disabled axis 0

Regards

Art

--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Art
>
> The axis is configured and enabled correct?
>
> If you type Jog0=-1000 on the console does the axis move?
>
> TK
>
>
>
>
> ________________________________
> From: "aeunson@..." <aeunson@...>
> To: DynoMotion@yahoogroups.com
> Sent: Wed, October 6, 2010 5:19:38 PM
> Subject: [DynoMotion] Re: Kflop / Kanalog
>
>  
> Hi Tom,
>
> Nope does ot move.
>
> Regards
>
> Art
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Art,
> >
> > Strange.  As a sanity check, let's replace the while loop with a simple one
> > second delay like:
> >
> >     Delay_sec(1.0);
> >
> > does axis 0 move for 1 second and then stop?
> >
> > TK
> >
> >
> >
> >
> > ________________________________
> > From: "aeunson@" <aeunson@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Wed, October 6, 2010 3:58:43 PM
> > Subject: [DynoMotion] Re: Kflop / Kanalog
> >
> >  
> > Hi Tom
> >
> > Yes I should have mentioned that
> >
> > Art
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Art,
> > >
> > > Did you try waiting for the other polarity of the bit?  (remove the "!")?
> > >
> > > TK
> > >
> > >
> > >
> > >
> > > ________________________________
> > > From: "aeunson@" <aeunson@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Wed, October 6, 2010 3:36:50 PM
> > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > >
> > >  
> > > Hi Tom
> > >
> > > That cured the compile error but the table does not even twitch now.
> > >
> > > It still works in Mach and step and response though.
> > >
> > > Regards
> > >
> > > Art
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Hi Art,
> > > >
> > > > Maybe the email is adding odd characters?
> > > >
> > > > I've attached the file.
> > > >
> > > > Hang in there we'll get it eventually :}
> > > >
> > > > TK
> > > >
> > > >
> > > >
> > > >
> > > > ________________________________
> > > > From: "aeunson@" <aeunson@>
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Wed, October 6, 2010 3:13:39 PM
> > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > >
> > > > ÃÆ'‚ 
> > > > Hi Tom,
> > > > I get this error:
> > > >
> > > > C:\KMotion422\C Programs\user2.c:1: unrecognized character \xa0
> > > >
> > > > When I run the simple program. Wish I could understand this.
> > > >
> > > > Regards
> > > >
> > > > Art
> > > >
> > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > >
> > > > > Art,
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > Let's try something even simpler:
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > TK
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > #include "KMotionDef.h"
> > > > > main()
> > > > > {
> > > > > ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'‚ÃÆ'‚ 
> >>Jog(0,-1000);ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > // start
> > >
> > > >moving
> > > > > ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'‚ÃÆ'‚  while
> >(!ReadBit(136)) ; // wait for switch
> >
> > >(input) to change
> > > > > ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'‚ÃÆ'‚ 
> >>>Jog(0,0);ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > >  // stop
> > > > > }
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > ________________________________
> > > > > From: "aeunson@" <aeunson@>
> > > > > To: DynoMotion@yahoogroups.com
> > > > > Sent: Wed, October 6, 2010 11:34:06 AM
> > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > >
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > Hi Tom
> > > > >
> > > > > I have tried it with IO 136 with and without ! and there is no
> >difference.
> >
> >
> > > > > (still small movement in positive direction)
> > > > >
> > > > > I have also tried different rates of jog and also no difference.
> > > > >
> > > > > Any idea what I am doing wrong?
> > > > >
> > > > > Regards
> > > > >
> > > > > Art
> > > > >
> > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > >
> > > > > > Hi Art,
> > > > > >
> > > > > > KFlop doesn't have a problem with IO numbers 128 or larger so if you
> >are
> >
> >
> > > > >using
> > > > >
> > > > >
> > > > > > IO136 specify 136.
> > > > > >
> > > > > > Strange that with and without the NOT they both immediately
> > > >reversed.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  One
> > > >
> > > > >of
> > > > >
> > > > >
> > > > > > them should have moved forever.
> > > > > >
> > > > > > Maybe you didn't understand how to remove the
> >NOT.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> >
> > >Did you try:
> > > > > >
> > > > > >
> >ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > while
> >
> > >(!ReadBit(136)) ;ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  // loop until
> > >
> > > >IO bit goes high
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > and
> > > > > >
> > > > > >
> >ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > while
> >
> > >(ReadBit(136)) ;ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  // loop until
> > >
> > > >IO bit goes low
> > > > > >
> > > > > > ??
> > > > > >
> > > > > > Regards
> > > > > > TK
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > ________________________________
> > > > > > From: "aeunson@" <aeunson@>
> > > > > > To: DynoMotion@yahoogroups.com
> > > > > > Sent: Tue, October 5, 2010 5:28:58 PM
> > > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > > >
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > Hi Tom,
> > > > > >
> > > > > > I dont have the Z axis conneted yet as I am still trying to source
> > > >conectors
> > > >
> > > >
> > > > > >for
> > > > > >
> > > > > > the Zservo motor.
> > > > > >
> > > > > > I took out all reference to Z axis channel 2
> > > > > >
> > > > > > When I ran the program the table still moved a small distance in a
> > >positive
> > >
> > > >
> > > > > > direction.
> > > > > >
> > > > > > On the X Axis I am using I/p 136 & 137 so I tried (!ReadBit(8))
> > > > > > with and without the not function and the table still moved slightly
> > > > >positive.
> > > > >
> > > > > >I
> > > > > >
> > > > > > also tried Jog(2,100)with the same results.
> > > > > >
> > > > > > Its getting late here I will try again in the morning.
> > > > > >
> > > > > > Regards
> > > > > >
> > > > > > Art
> > > > > >
> > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > >
> > > > > > > Hi Art,
> > > > > > >
> > > > > > > Yes that is the correct way to test.
> > > > > > >
> > > > > > > The SimpleHome3Axis.c program will have to be modified for your
> > system.
> > > > > > >
> > > > > > > Probably the program is waiting for the wrong I/O bit as the home
> > >switch
> > >
> > >
> > > > > >and/or
> > > > > >
> > > > > > >
> > > > > > > the wrong polarity of the bit so it just thinks it immediatly saw the
> >
> > > > >switch
> > > > >
> > > > >
> > > > > > >and
> > > > > > >
> > > > > > > did the small motion back inside.
> > > > > > >
> > > > > > > Look for the line of:
> > > > > > >
> > > > > > > while (!ReadBit(10))
> >;ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > //
> >
> > >loop until IO bit goes
> > >
> > > high
> > > > > > >
> > > > > > >
> > > > > > > This line means that "while Bit #10 is NOT true do nothing"
> > > > > > >
> > > > > > > The "!" symbol is the NOT operator in the C language.
> > > > > > >
> > > > > > > Change the value of 10 to whatever you system is wired
> > >
> >>as.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > Also
> >
> > > >
> > > > >remove
> > > > >
> > > > > >the
> > > > > >
> > > > > > >NOT
> > > > > > >
> > > > > > > operator depending on your wiring.
> > > > > > >
> > > > > > > Make the appropriate changes for each axis.
> > > > > > >
> > > > > > > Regards
> > > > > > > TK
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > ________________________________
> > > > > > > From: "aeunson@" <aeunson@>
> > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > Sent: Tue, October 5, 2010 4:07:43 PM
> > > > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > > > >
> > > > > > >
> >ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> >
> > > > > > >
> > > > > > > Hi Tom
> > > > > > >
> > > > > > > That has cured the reset problem.
> > > > > > >
> > > > > > > I am not sure how to test the home program I opened it in the C
> >program
> >
> > >
> > > > > >window
> > > > > >
> > > > > >
> > > > > > > and tried to run it but the table just gives a small movement on both
> >
> > > >axis.
> > > >
> > > > >
> > > > > >The
> > > > > >
> > > > > > >
> > > > > > > table was no where near the switches.
> > > > > > >
> > > > > > > Is this the right way to test it?
> > > > > > >
> > > > > > > Regards
> > > > > > >
> > > > > > > Art
> > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > >
> > > > > > > > Hi Art,
> > > > > > > >
> > > > > > > > Attached is a newer firmware that should solve the communication
> > > >problem
> > > >
> > > >
> > > > > > >after
> > > > > > >
> > > > > > > >a
> > > > > > > >
> > > > > > > > disable message.
> > > > > > > >
> > > > > > > > Copy it to the DSP_KFLOP directory and use the Config/Flash Screen
> >to
> >
> > >
> > > > >flash
> > > > >
> > > > > >
> > > > > > >it
> > > > > > >
> > > > > > >
> > > > > > > > as a new Version.
> > > > > > > >
> > > > > > > > The Version command in the console should then report the firmware
>
> > > > >version
> > > > >
> > > > > >as
> > > > > >
> > > > > > >
> > > > > > > > 4.23B
> > > > > > > >
> > > > > > > > Yes the Ref All Home button can be made to
> >>>work.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > >  As
> > >
> > > >
> > > > >well as homing
> > > > >
> > > > > >to a
> > > > > >
> > > > > > >limit
> > > > > > >
> > > > > > > >
> > > > > > > >
> >>switch.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > But first Homing
> > >
> > > >Programs must be created for
> > > >
> > > > >your
> > > > >
> > > > > system.
> > > > > > > >
> > > > > > > > I've attached an
> >>example.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > >
> > > >Please see if you
> > > >
> > > > >understand it and if
> > > > >
> > > > > >it
> > > > > >
> > > > > > >works.
> > > > > > > >
> > > > > > > > After it is working properly we can merge the code into the
> > >HomeMach3.c
> > >
> > > >
> > > > >so
> > > > >
> > > > >
> > > > > > >the
> > > > > > >
> > > > > > >
> > > > > > > > Mach3 Plugin Messages will execute the code.
> > > > > > > >
> > > > > > > > Regards
> > > > > > > > TK
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > ________________________________
> > > > > > > > From: "aeunson@" <aeunson@>
> > > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > > Sent: Tue, October 5, 2010 12:53:54 AM
> > > > > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > > > > >
> > > > > > > >
> >>ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > >
> > > > > > > > Hi Tom
> > > > > > > >
> > > > > > > > I have separate limits for each end on all axis and I was hoping to
> >
> > >use
> > >
> > > >
> > > > >one
> > > > >
> > > > > >
> > > > > > >of
> > > > > > >
> > > > > > >
> > > > > > > > the as the home switch to0. Is this possible? I also have the axis
>
> > >set
> > >
> > > >to
> > > >
> > > > >
> > > > > > > > disallow drive into limit.
> > > > > > > > I am not sure how I would set the system up to automatically move
> >the
> >
> > >
> > > > >drive
> > > > >
> > > > > >
> > > > > > > >back
> > > > > > > >
> > > > > > > > into limit. Anyway this will not work when I get the flash error
> >when
> >
> > >I
> > >
> > > >
> > > > >try
> > > > >
> > > > > >
> > > > > > >to
> > > > > > >
> > > > > > >
> > > > > > > > reset after the Y axis hits the limit.
> > > > > > > >
> > > > > > > > I was assuming that I could use one of the limits and configure the
> >
> > > > >plugin
> > > > >
> > > > >
> > > > > > >mach
> > > > > > >
> > > > > > > >
> > > > > > > > to run the home program by using the ref all home button and it
> >would
> >
> > >
> > > > >home
> > > > >
> > > > >
> > > > > > >each
> > > > > > >
> > > > > > > >
> > > > > > > > axis.
> > > > > > > >
> > > > > > > > Regards
> > > > > > > >
> > > > > > > > Art
> > > > > > > >
> > > > > > > > From: Tom Kerekes [mailto:tk@]
> > > > > > > > Sent: 05 October 2010 12:52 AM
> > > > > > > > To: Arthur Eunson
> > > > > > > > Subject: Re: Flash error
> > > > > > > >
> > > > > > > > Hi Art,
> > > > > > > >
> > > > > > > > Well I think we need to come up with a scheme of getting out of the
> >
> > > >limit
> > > >
> > > > >
> > > > > > > > without getting another limit error and disable. The simplest is if
> >
> > >you
> > >
> > > >
> > > > > >have
> > > > > >
> > > > > >
> > > > > > > > separate limits and use disallow drive into limit. Otherwise your
> > >reset
> > >
> > > >
> > > > >has
> > > > >
> > > > > >
> > > > > > >to
> > > > > > >
> > > > > > >
> > > > > > > > leave limits disabled until you get back out of the limits. Or you
>
> > >can
> > >
> > >
> > > > >have
> > > > >
> > > > > >
> > > > > > > > Reset automatically move back inside the limit before re-enabling
> > > > limits.
> > > > > > > >
> > > > > > > > The creep issue is because it is really hard to command the Amps to
> >
> > > >move
> > > >
> > > > >at
> > > > >
> > > > > >
> > > > > > > > exactly zero velocity. If you can get the table to sit still by
> > > > >commanding
> > > > >
> > > > >
> > > > > > >some
> > > > > > >
> > > > > > > >
> > > > > > > > small + or - DAC count then that can be entered as a OutputOffset
> > >value
> > >
> > > >
> > > > >for
> > > > >
> > > > > >
> > > > > > >the
> > > > > > >
> > > > > > > >
> > > > > > > > axis. Otherwise you will need to wire up an amplifier disable
> >signal
> >
> >
> > > >and
> > > >
> > > >
> > > > > >use
> > > > > >
> > > > > > >a
> > > > > > >
> > > > > > >
> > > > > > > > KFlop "watchdog" program to disable the amplifiers whenever any
> >axis
> >
> > >is
> > >
> > > >
> > > > > > > > disabled.
> > > > > > > >
> > > > > > > > Regards
> > > > > > > > TK
> > > > > > > >
> > > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > >
> > > > > > > > > Art,
> > > > > > > > >
> > > > > > > > >
> >>>TheÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ line
> >e
> > >e
> > > > in your c program:
> > > > > > > > >
> > > > > > > > >
> >>>>ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'
> ¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'Ã
> Æ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ
> >†
> >'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > 
> > > > 
> > > > >
> > > > > >EnableAxisDest(0,ch1->Position);
> > > > > > > > >
> > > > > > > > > should be
> > > > > > > > >
> > > > > > > > >
> >>>>ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'
> ¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'Ã
> Æ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ
> >†
> >'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > 
> > > > 
> > > > >
> > > > > >EnableAxisDest(1,ch1->Position);
> > > > > > > > >
> > > > > > > > > Otherwise you are enabling axis 0 axis 1's position and never
> > > >enabling
> > > >
> > > >
> > > > > >axis
> > > > > >
> > > > > > >1
> > > > > > >
> > > > > > > >
> > > > > > > > > (Y).
> > > > > > > > >
> > > > > > > > > There is not really any point to defining limits and home inputs
> >in
> >
> > >
> > > > > > >
> >>>>Mach3.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > 
> > > > In
> > > >
> > > > > > > >
> > > > > > > > >
> > > > > > > > > original Mach3 those were handled by the Parallel Port Kernel
> > >driver
> > >
> > >
> > > > > >(which
> > > > > >
> > > > > > >
> > > > > > > >is
> > > > > > > >
> > > > > > > >
> > > > > > > > > no longer
> >>>used).ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > 
> > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > Limits must be configured in the KFlop configuration so they are
>
> > > > > >monitored
> > > > > >
> > > > > > >in
> > > > > > >
> > > > > > > >
> > > > > > > > >
> >>>real-time.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > 
> > > > Home inputs are
> > > >
> > > > >also handled by a KFlop
> > > > >
> > > > > >Homing
> > > > > >
> > > > > > program.
> > > > > > > > >
> > > > > > > > > Also Mach3 only likes "Pin" numbers less than
> >>>>128.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > 
> > > >  To
> > > >
> > > > >
> > > > > >configure
> > > > > >
> > > > > > >Mach
> > > > > > >
> > > > > > > >Inputs
> > > > > > > >
> > > > > > > > >for
> > > > > > > > >
> > > > > > > > > KFlop I/O numbers greater than or equal to 128, subtract 128 from
> >
> > >the
> > >
> > > >
> > > > > > >number
> > > > > > >
> > > > > > >
> > > > > > > > >and
> > > > > > > > >
> > > > > > > > > specify Port #2.
> > > > > > > > >
> > > > > > > > > Regards
> > > > > > > > > TK
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > ________________________________
> > > > > > > > > From: "aeunson@" <aeunson@>
> > > > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > > > Sent: Sun, October 3, 2010 4:40:51 PM
> > > > > > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > > > > > >
> > > > > > > > >
> >>>ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > 
> > > >
> > > > > > > > > Tom,
> > > > > > > > >
> > > > > > > > > Can you check the uploaded c program to see where I have gone
> > >wrong.
> > > > > > > > > I have added the Y axis and limit switches on x and Y axis.
> > > > > > > > > Set the motor tuning in Mach etc.
> > > > > > > > >
> > > > > > > > > When I run Mach I get a Y axis disabled.
> > > > > > > > >
> > > > > > > > > I also set up the limit and home I/Ps in Mach but they keep
> > > changing.
> > > > > > > > >
> > > > > > > > > I set the pins to:
> > > > > > > > > X+ 136
> > > > > > > > > x- 137
> > > > > > > > > x hme 136
> > > > > > > > > Y+ 138
> > > > > > > > > Y- 139
> > > > > > > > > Y home 138
> > > > > > > > >
> > > > > > > > > When I go back to the I/P screen they have changed to:
> > > > > > > > > X+ -120
> > > > > > > > > X- -119
> > > > > > > > > X home -120
> > > > > > > > > Y+ -118
> > > > > > > > > Y- -117
> > > > > > > > > Y home -118
> > > > > > > > >
> > > > > > > > > Best Regards
> > > > > > > > >
> > > > > > > > > Art
> > > > > > > > >
> > > > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > > >
> > > > > > > > > >
> >>>>Both.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚Â
> ¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > 
> > > > 
> > > > > As I said, keep the
> > > > >
> > > > > >Jerk 100X of the
> > > > > >
> > > > > > >Acceleration.
> > > > > > > > > >
> > > > > > > > > > TK
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > ________________________________
> > > > > > > > > > From: "aeunson@" <aeunson@>
> > > > > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > > > > Sent: Sat, October 2, 2010 3:28:31 PM
> > > > > > > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > > > > > > >
> > > > > > > > > >
> >>>>ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢Ã
> Æ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > 
> > > > 
> > > > >
> > > > > > > > > > Thanks Tom,
> > > > > > > > > >
> > > > > > > > > > Do I reduce the acceleration or increase the jerk?
> > > > > > > > > >
> > > > > > > > > > regards
> > > > > > > > > >
> > > > > > > > > > Art
> > > > > > > > > >
> > > > > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > > > >
> > > > > > > > > > > Hi Art,
> > > > > > > > > > >
> > > > > > > > > > > That looks very
> >>>>>good.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'‚ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡
> ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'‚ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ
> '‚ÃÆ'‚
> >Å¡
> >¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'
> ¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > 
> > > > 
> > > > >ÃÆ'‚ 
> > > > > > Except
> > > > > >
> > > > > > >the Acceleration limit
> > > > > > >
> > > > > > > >is basically
> > > > > > > >
> > > > > > > > >set to
> > > > > > > > >
> > > > > > > > > > > infinity so the max acceleration is limited by the Jerk (and
>
> > >the
> > >
> > >
> > > > >Max
> > > > >
> > > > >
> > > > > > > > > >
> >>>>>>Velocity).ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'‚ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…Ã
> ‚¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'‚ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬ÅÂ
> ¡ÃÆ'Æ'‚
> >¡
> >ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚Â
> ¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > 
> > > > 
> > > > >ÃÆ'‚ 
> > > > > >
> > > > > > > > > > >
> > > > > > > > > > > It would take 500 seconds at the specified Jerk to reach the
>
> > >max
> > >
> > >
> > > > > > > > > >acceleration,
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > > but after a fraction of a second of ramping the acceleration
>
> > >the
> > >
> > >
> > > > >max
> > > > >
> > > > >
> > > > > > > > >velocity
> > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > > would be
> >>>>>exceeded.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'‚ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…Â
> ¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'‚ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡Ã
> Æ'Æ'‚ÃÆ'
> >Æ'
> >‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢
> ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > 
> > > > 
> > > > >ÃÆ'‚ 
> > > > > > This is
> > > > > >
> > > > > > >fine for generating nice
> > > > > > >
> > > > > > > >smooth motion,
> > > > > > > >
> > > > > > > > >but
> > > > > > > > >
> > > > > > > > > >since
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > > Mach3 has no Jerk control that value of acceleration won't
> > > > > > >
> >>>>>>work.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'‚ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…ÂÂ
> ¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'‚ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'
> Æ'‚ÃÆ'‚
> >Å¡
> >¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'
> ¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > 
> > > > 
> > > > >ÃÆ'‚ 
> > > > > >
> > > > > > > >
> > > > > > > > >As you
> > > > > > > > >
> > > > > > > > > > >change
> > > > > > > > > > >
> > > > > > > > > > > the Acceleration keep the numeric value of the Jerk about
> >100X
> >
> >
> > > > >larger
> > > > >
> > > > > >
> > > > > > > >than
> > > > > > > >
> > > > > > > >
> > > > > > > > > >the
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > > numeric value of the
> >>>>>>Acceleration.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'‚ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…
> ¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'‚ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å
> ¡ÃÆ'Æ'â
> >¢
> >€šÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'â
> €šÃ‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > 
> > > > 
> > > > >ÃÆ'‚ 
> > > > > >ÃÆ'Æ'‚ÃÆ'‚  This will apply
> > > > > >
> > > > > > >
> > > > > > > >the full
> > > > > > > >
> > > > > > > > >Acceleration
> > > > > > > > >
> > > > > > > > > >in ~
> > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > 0.01 seconds which is similar to what happens in Mach3.
> > > > > > > > > > >
> > > > > > > > > > >
> >>>>>TKÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'‚ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡Ã
> Æ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'‚ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'
> ‚ÃÆ'‚¢
> >¢
> >ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢
> ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 
> > > 
> > > > 
> > > > >ÃÆ'‚ 
> > > > > >
> > > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
Group: DynoMotion Message: 716 From: Tom Kerekes Date: 10/7/2010
Subject: Re: Kflop / Kanalog
Hi Art,
 
Very strange.  It seems your KFlop User C programs are just not working for some reason.
 
What button are you pushing?  You should be pushing the one with all the arrows with a tool tip that states:
 
"Save, Compile, Download, Run".
 
Try loading the example Print.c.  Does it print "Hello World" on the console?
 
Send me the program with just the Jog, delay 1 sec, and stop that you tried.
 
Regards
TK
 

 

Group: DynoMotion Message: 717 From: aeunson@btinternet.com Date: 10/7/2010
Subject: Re: Kflop / Kanalog
Tom

Thats the button I am using.

#include "KMotiondef.h"
main()
(
jog(0,-1000); // start moving
delay_sec(1.0); // wait for switch (input) to change
Jog(0,0); // StopMotion
)

Regards

Art

--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Art,
>
> Strange.  As a sanity check, let's replace the while loop with a simple one
> second delay like:
>
>     Delay_sec(1.0);
>
> does axis 0 move for 1 second and then stop?
>
> TK
>
>
>
>
Group: DynoMotion Message: 718 From: Tom Kerekes Date: 10/7/2010
Subject: Re: Kflop / Kanalog
Hi Art,
 
I see 3 errors in the program, but I assume those are just typos when you re-typed it ??
 
Otherwise there is no way it would compile.
 
Th C Language is case sensitive so programs won't compile with differen case
 
"Jog" and "Delay_sec" need to be capitalized.
 
The main function block is defined by curly brackets " { } " not parenthesis " ( ) "
Could you send me Exactly what you are executing?
 
Did you try the Print.c example?  Does it print "Hello World" ??
 
Regards
TK
 
 

Group: DynoMotion Message: 719 From: aeunson@btinternet.com Date: 10/7/2010
Subject: Re: Kflop / Kanalog
Hi Tom

I was getting desperate so I re-installed Kmotion etc. I then corrected the errors in the file below and it now works.
I then modified the 3 axis program to 2 (X&Y) as I still dont have the conectors for the z servo. This also works.
I uploaded the file for you to check. I dont kow how to add attachments in here.

What is the next stage?

Regards

Art



--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Art,
>
> I see 3 errors in the program, but I assume those are just typos when you
> re-typed it ??
>
> Otherwise there is no way it would compile.
>
> Th C Language is case sensitive so programs won't compile with differen case
>
> "Jog" and "Delay_sec" need to be capitalized.
>
> The main function block is defined by curly brackets " { } " not parenthesis " (
> ) "
>
> Could you send me Exactly what you are executing?
>
> Did you try the Print.c example?  Does it print "Hello World" ??
>
> Regards
> TK
>
>
>
>
>
> ________________________________
> From: "aeunson@..." <aeunson@...>
> To: DynoMotion@yahoogroups.com
> Sent: Thu, October 7, 2010 2:48:24 PM
> Subject: [DynoMotion] Re: Kflop / Kanalog
>
>  
> Tom
>
> Thats the button I am using.
>
> #include "KMotiondef.h"
> main()
> (
> jog(0,-1000); // start moving
> delay_sec(1.0); // wait for switch (input) to change
> Jog(0,0); // StopMotion
> )
>
> Regards
>
> Art
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Art,
> >
> > Strange.  As a sanity check, let's replace the while loop with a simple one
> > second delay like:
> >
> >     Delay_sec(1.0);
> >
> > does axis 0 move for 1 second and then stop?
> >
> > TK
> >
> >
> >
> >
>
Group: DynoMotion Message: 720 From: Tom Kerekes Date: 10/7/2010
Subject: Re: Kflop / Kanalog
Attachments :
Hi Art,
 
Great!
 
The next step would be to merge the homing code for x and y into the appropriate section of the Mach3Home.c shell.
 
I have already done this for you.  See attached.  Save this file somewhere.
 
Now in the Mach3 - Configuration - Plugin - Dynomotion in the Homing section specify this file.
 
Make sure that Thread 3 and Variable 5 are also configured.
 
Then try the Ref ALL Home button on the Mach3 Screen.
Regards
TK

Group: DynoMotion Message: 723 From: aeunson@btinternet.com Date: 10/8/2010
Subject: Re: Kflop / Kanalog
Thanks Tom

That also works very well, hopefully I will now be able to add the code for the z axis when I have all the parts.

Is it possible to have the axis dro's automatically set to zero on home?

What is the best way to handle ESTOP in Kflop / Kanalog?

Regards

Art

--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Art,
>
> Great!
>
> The next step would be to merge the homing code for x and y into the appropriate
> section of the Mach3Home.c shell.
>
> I have already done this for you.  See attached.  Save this file somewhere.
>
> Now in the Mach3 - Configuration - Plugin - Dynomotion in the Homing section
> specify this file.
>
> Make sure that Thread 3 and Variable 5 are also configured.
>
> Then try the Ref ALL Home button on the Mach3 Screen.
>
> Regards
> TK
>
>
>
> ________________________________
> From: "aeunson@..." <aeunson@...>
> To: DynoMotion@yahoogroups.com
> Sent: Thu, October 7, 2010 4:50:40 PM
> Subject: [DynoMotion] Re: Kflop / Kanalog
>
>  
> Hi Tom
>
> I was getting desperate so I re-installed Kmotion etc. I then corrected the
> errors in the file below and it now works.
> I then modified the 3 axis program to 2 (X&Y) as I still dont have the conectors
> for the z servo. This also works.
> I uploaded the file for you to check. I dont kow how to add attachments in here.
>
> What is the next stage?
>
> Regards
>
> Art
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Art,
> >
> > I see 3 errors in the program, but I assume those are just typos when you
> > re-typed it ??
> >
> > Otherwise there is no way it would compile.
> >
> > Th C Language is case sensitive so programs won't compile with differen case
> >
> > "Jog" and "Delay_sec" need to be capitalized.
> >
> > The main function block is defined by curly brackets " { } " not parenthesis "
> >(
> >
> > ) "
> >
> > Could you send me Exactly what you are executing?
> >
> > Did you try the Print.c example?  Does it print "Hello World" ??
> >
> > Regards
> > TK
> >
> >
> >
> >
> >
> > ________________________________
> > From: "aeunson@" <aeunson@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Thu, October 7, 2010 2:48:24 PM
> > Subject: [DynoMotion] Re: Kflop / Kanalog
> >
> >  
> > Tom
> >
> > Thats the button I am using.
> >
> > #include "KMotiondef.h"
> > main()
> > (
> > jog(0,-1000); // start moving
> > delay_sec(1.0); // wait for switch (input) to change
> > Jog(0,0); // StopMotion
> > )
> >
> > Regards
> >
> > Art
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Art,
> > >
> > > Strange.  As a sanity check, let's replace the while loop with a simple
> >one
> >
> > > second delay like:
> > >
> > >     Delay_sec(1.0);
> > >
> > > does axis 0 move for 1 second and then stop?
> > >
> > > TK
> > >
> > >
> > >
> > >
> >
>
Group: DynoMotion Message: 724 From: Tom Kerekes Date: 10/8/2010
Subject: Re: Kflop / Kanalog
Hi Art,
 
I think right now we basically zero at the home switch and then move some amount in.  So the machine coordinates will be the amount of the offset.
 
Is that the issue?  Or are you referring to Mach3 work offsets?
 
You can add the following code to zero the Machine Coordinates after the move inside 
 
        // Set X destination to zero
        DisableAxis(0);
        Zero(0);
        EnableAxisDest(0,0.0);
 
        // Set Y destination to zero
        DisableAxis(1);
        Zero(1);
        EnableAxisDest(1,0.0);
 
 
Regarding Estop: one way is to wire it to any KFlop input and configure Mach3 to monitor that IO bit.
 
Regards
TK